Definition of V2TIMConversation.
Public Member Functions | |
V2TIMConversation () | |
V2TIMConversation (const V2TIMConversation &conversation) | |
V2TIMConversation & | operator= (const V2TIMConversation &conversation) |
~V2TIMConversation () | |
V2TIMConversation | ( | const V2TIMConversation & | conversation | ) |
~V2TIMConversation | ( | ) |
V2TIMConversation& operator= | ( | const V2TIMConversation & | conversation | ) |
Conversation type.
V2TIMString conversationID |
Unique ID of a conversation. For one-to-one chats, the value format is String.format("c2c_%s", "userID"). For group chats, the value format is String.format("group_%s", "groupID").
V2TIMString userID |
If the conversation is a one-to-one chat, the user ID of the remote user will be returned; otherwise, null will be returned.
V2TIMString groupID |
If the conversation is a group chat, the group ID will be returned; otherwise, null will be returned.
V2TIMString groupType |
Group type of a conversation (valid for group conversations only)
V2TIMString showName |
Get the conversation display name. The priorities are as follows:
V2TIMString faceUrl |
Conversation display profile photo.
int unreadCount |
Count of unread messages in a conversation.
V2TIMReceiveMessageOpt recvOpt |
Message receiving option for a conversation (Receive | Receive but not notify | Not receive)
V2TIMMessage* lastMessage |
Last message of a conversation
V2TIMGroupAtInfoVector groupAtInfolist |
Get a list of @ messages. This API can be used to notify a user when they are mentioned or all members are mentioned in a group.
V2TIMString draftText |
Get the draft of an unsent message (a draft message is stored locally only and will be lost after the app is reinstalled)
uint64_t draftTimestamp |
Get the UTC timestamp when the draft was last set.
bool isPinned |
Whether to pin on top.
uint64_t orderKey |
The field by which conversations are sorted (supported only in 5.5.892 and later)
V2TIMUInt64Vector markList |
Mark list of the conversation(supported only in 6.5 and later versions)
V2TIMBuffer customData |
Custom data of the conversation(supported only in 6.5 and later versions)
V2TIMStringVector conversationGroupList |
The conversation group list to which the conversation belongs.(supported only in 6.5 and later versions)
uint64_t c2cReadTimestamp |
UTC timestamp of the latest message which has been read. Valid only for one-to-one chat.(supported only in 7.1 and later versions)
uint64_t groupReadSequence |
Sequence of the latest message which has been read. Valid only for group chat.(supported only in 7.1 and later versions)