消息介绍
消息基本结构
字段 | 类型 | 描述 |
---|---|---|
conversationType | RCIMConversationType | 会话类型 |
targetId | string | 会话 ID |
channelId | string | 所属会话的业务标识,长度限制 20 字符,仅在超级群下生效 |
messageType | RCIMMessageType | 消息的类型 |
messageId | int | 本地存储的消息的唯一值(数据库索引唯一值) |
messageUId | string | 服务器消息唯一 ID(在同一个 Appkey 下全局唯一) |
direction | RCIMMessageDirection | 消息的方向 |
receivedTime | int | 消息的接收时间(Unix 时间戳、毫秒) |
sentTime | int | 消息的发送时间(Unix 时间戳、毫秒) |
receivedStatus | RCIMReceivedStatus | 消息的接收状态 |
sentStatus | RCIMSentStatus | 消息的发送状态 |
senderUserId | string | 消息的发送者 ID |
expansion | Dictionary<string, string> | 消息扩展信息列表,该属性在消息发送时确定,发送之后不能再做修改。 扩展信息只支持单聊和群组,其它会话类型不能设置扩展信息。 默认消息扩展字典 key 长度不超过 32 ,value 长度不超过 4096 ,单次设置扩展数量最大为 20,消息的扩展总数不能超过 300 |
offLine | bool | 是否是离线消息,只在接收消息的回调方法中有效,如果消息为离线消息,则为 YES ,其他情况均为 NO |
groupReadReceiptInfo | RCIMGroupReadReceiptInfo | 群阅读回执状态 |
userInfo | RCIMUserInfo | 消息携带的用户信息 |
mentionedInfo | RCIMMentionedInfo | 消息的 @ 信息 |
pushOptions | RCIMMessagePushOptions | 消息推送配置,仅可在发送方进行配置,接收方为空 |
extra | string | 消息的附加字段,设置后接收方收到消息后也可以拿到数据。 |