ChatroomMember 类(Web IMLib)

类继承图​

Object→ChatroomMember

继承关系:Object → ChatroomMember。该数据结构不包含行为方法,字段与 domain.json → schemas.ChatroomMember 一一对应。

类说明​

聊天室成员:userId、昵称、在线状态与加入时间。

项值
类型数据结构(值对象)
字段数4
IDL 定义domain.json → schemas.ChatroomMember
程序包@ni-paas/im-web
跨端一致性字段名与取值在 7 个平台绑定中一致;仅语言类型映射不同
平台状态已交付

字段概要​

字段类型必填说明
userIdstring是见字段类型定义
namestring否名称
onlinebool是是否在线
joinedAtint64否加入时间(epoch ms)

详细字段说明​

string userId
必填

见字段类型定义

string name
可选

名称

bool online
必填

是否在线

int64 joinedAt
可选

加入时间(epoch ms)

相关链接​