Skip to content
v1
文档/Browser JS SDK/消息

@beeworks/imsdk


@beeworks/imsdk / message / IMessage

IMessage ​

消息体

Properties ​

sessionId? ​

optional sessionId: string

消息关联的会话ID


deliveryId ​

deliveryId: string

消息ID


deliveryTime ​

deliveryTime: number

消息时间


deliverySeq ​

deliverySeq: number | Long

消息逻辑排序号


bodyType? ​

optional bodyType: MessageType

消息类型


fromId? ​

optional fromId: string

消息发送者ID


fromDomain? ​

optional fromDomain: string

消息发送者domainId


fromType? ​

optional fromType: CONV_C2C | CONV_C2G

消息发送者类型


toId? ​

optional toId: string

消息接收者ID


toDomain? ​

optional toDomain: string

消息接收者domain


toType? ​

optional toType: ConversationType

发送者TYPE


metadata? ​

optional metadata: string

metadata值


body? ​

optional body: string

消息BODY值


status? ​

optional status: number

消息状态


createTime? ​

optional createTime: number

创建时间


updateTime? ​

optional updateTime: number

更新时间


id? ​

optional id: string

消息ID


confirmed? ​

optional confirmed: boolean

是否确认


lastReadTime? ​

optional lastReadTime: number

最后读取时间


lastAtTime? ​

optional lastAtTime: number

最后提及时间


conversationId? ​

optional conversationId: string

消息会话ID


conversationType? ​

optional conversationType: string

消息会话类型