V2TimConversation
Introduction
The class of each conversation.
Parameter introduction
conversationID
- Parameter type : string
- Parameter description : The unique conversation ID.
type
- Parameter type : number
- Parameter description : The conversation type
1: One-to-one c2c chat.
2: Group chat.
userID
- Parameter type : string
- Parameter description : If the conversation type is one-to-one chat, the userID stores the user ID of the peer; otherwise, the userID is null.
groupID
- Parameter type : string
- Parameter description : If the conversation type is group chat, the groupID stores the current group ID; otherwise, the groupID is null.
showName
- Parameter type : string
- Parameter description : The conversation display name.
faceUrl
- Parameter type : string
- Parameter description : Get the URl of conversation display profile photo.
groupType
- Parameter type : string
- Parameter description : The group type (valid for group conversations only).
unreadCount
- Parameter type : number
- Parameter description : The unread count
lastMessage
- Parameter type : V2TimMessage
- Parameter description : The last message of the conversation.
draftText
- Parameter type : string
- Parameter description : A draft message whose editing is not finished (a draft message is stored locally only and will get lost after the app is uninstalled and reinstalled). Set this field by invoking setConversationDraft method.
draftTimestamp
- Parameter type : number
- Parameter description : The draft message time.
isPinned
- Parameter type : boolean
- Parameter description : Whether to pin on top.
recvOpt
- Parameter type : number
- Parameter description : The message receiving option.
0: Allow receive.
1: Receive but not notify.
2: Do not allow receive.
groupAtInfoList
- Parameter type : V2TimGroupAtInfo[]
- Parameter description : The @ information list of a group conversation, which is used to display "someone@me" or "@All" notifications
orderkey
- Parameter type : number
- Parameter description : The sorting field orderKey is a number that increases linearly according to the conversation activation time (note: this is not a timestamp because multiple conversations may be activated at the same time).