new Conversation()
会话对象,用于描述会话具有的属性,如类型、消息未读计数、最新消息等。
Properties:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
conversationID |
String |
会话 ID。会话ID组成方式:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
type |
String |
会话类型,具体如下:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
subType |
String |
群组会话的群组类型,具体如下:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
unreadCount |
Number |
未读计数。TIM.TYPES.GRP_MEETING / TIM.TYPES.GRP_AVCHATROOM 类型的群组会话不记录未读计数,该字段值为0 |
||||||||||||||||||||||||||||||||||||||||||||||||||||
lastMessage |
Object |
会话最新的消息 Properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
groupProfile |
Group |
群会话的群组资料 |
||||||||||||||||||||||||||||||||||||||||||||||||||||
userProfile |
Profile |
C2C会话的用户资料 |
||||||||||||||||||||||||||||||||||||||||||||||||||||
groupAtInfoList |
Array.<GroupAtInfo> |
群会话的 at 信息列表,接入侧可根据此信息在会话列表展示【有人@我】【@所有人】等效果。GroupAtInfo - 群 at 信息结构,v2.9.0 起支持。 |
||||||||||||||||||||||||||||||||||||||||||||||||||||
remark |
String |
好友备注,只有C2C会话且对端是我的好友,且我设置过此好友的备注才有值(v2.13.0起支持) |
||||||||||||||||||||||||||||||||||||||||||||||||||||
isPinned |
Boolean |
会话是否置顶(v2.14.0起支持) |
||||||||||||||||||||||||||||||||||||||||||||||||||||
messageRemindType |
String |
消息提醒类型(v2.16.0起支持),具体如下:
|
Type Definitions
GroupAtInfo
Properties:
Name | Type | Description |
---|---|---|
groupID |
String |
群 ID |
messageSequence |
Number |
带 at 信息的消息的 sequence |
atTypeArray |
Array.<Number> |
at 类型数组,群会话 at 枚举值如下:
|
群 at 信息结构