Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • NIMSession

Index

Properties

id: string

会话ID

isTop?: boolean

是否被置顶会话

lastMsg: NIMMessage

此会话的最后一条消息

localCustom?: string

本地数据库中的会话自定义扩展字段

注:在支持数据库时可以调用更新本地会话来更新此字段, 此字段只会被更新到本地数据库, 不会被更新到服务器上

msgReceiptTime?: number

消息已读回执时间戳

注:这个字段表述自己发送的消息,对方是不是已读过。如果有此字段, 说明此时间戳之前的所有消息对方均已读

注2: 目前仅对'p2p'会话起作用

scene: string

场景

p2p 单聊 team 群聊 superTeam 超大群聊

to: string

聊天对象, 账号或群ID

topCustom?: string

置顶的扩展字段

unread: number

未读数

updateTime: number

会话更新的时间