mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Added linphone_chat_room_get_last_update_time method
This commit is contained in:
parent
b885d643e4
commit
9f5a74bd42
2 changed files with 11 additions and 0 deletions
|
|
@ -298,6 +298,13 @@ LINPHONE_PUBLIC LinphoneChatRoomState linphone_chat_room_get_state (const Linpho
|
|||
*/
|
||||
LINPHONE_PUBLIC bool_t linphone_chat_room_has_been_left (const LinphoneChatRoom *cr);
|
||||
|
||||
/**
|
||||
* Return the last updated time for the chat room
|
||||
* @param[in] cr LinphoneChatRoom object
|
||||
* @return the last updated time
|
||||
*/
|
||||
LINPHONE_PUBLIC time_t linphone_chat_room_get_last_update_time(const LinphoneChatRoom *cr);
|
||||
|
||||
/**
|
||||
* Add a participant to a chat room. This may fail if this type of chat room does not handle participants.
|
||||
* Use linphone_chat_room_can_handle_participants() to know if this chat room handles participants.
|
||||
|
|
|
|||
|
|
@ -260,6 +260,10 @@ bool_t linphone_chat_room_has_been_left (const LinphoneChatRoom *cr) {
|
|||
return (bool_t)L_GET_CPP_PTR_FROM_C_OBJECT(cr)->hasBeenLeft();
|
||||
}
|
||||
|
||||
time_t linphone_chat_room_get_last_update_time(const LinphoneChatRoom *cr) {
|
||||
return L_GET_CPP_PTR_FROM_C_OBJECT(cr)->getLastUpdateTime();
|
||||
}
|
||||
|
||||
void linphone_chat_room_add_participant (LinphoneChatRoom *cr, const LinphoneAddress *addr) {
|
||||
L_GET_CPP_PTR_FROM_C_OBJECT(cr)->addParticipant(
|
||||
LinphonePrivate::IdentityAddress(*L_GET_CPP_PTR_FROM_C_OBJECT(addr)), nullptr, false
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue