|
NIMResCode | rescode_ |
| 错误码
|
|
NIMMessageFeature | feature_ |
| 消息属性
|
|
NIMSessionType | session_type_ |
| 会话类型
|
|
std::string | receiver_accid_ |
| 接收者ID
|
|
std::string | sender_accid_ |
| 发送者ID
|
|
int64_t | timetag_ |
| 消息时间戳(毫秒)
|
|
std::string | content_ |
| 消息内容,长度限制10000
|
|
NIMMessageType | type_ |
| 消息类型
|
|
std::string | attach_ |
| 消息附件 ,长度限制10000
|
|
std::string | client_msg_id_ |
| 消息ID(客户端)
|
|
MessageSetting | msg_setting_ |
| 消息属性设置
|
|
std::string | third_party_callback_ext_ |
| 第三方回调回来的自定义扩展字段 v7.8添加
|
|
int32_t | sub_type_ {0} |
| 消息的子类型,客户端定义,服务器透传
|
|
std::string | local_res_path_ |
| 媒体文件本地绝对路径(客户端)
|
|
std::string | local_talk_id_ |
| 会话ID(客户端)
|
|
std::string | local_res_id_ |
| 媒体文件ID(客户端)
|
|
NIMMsgLogStatus | status_ |
| 消息状态(客户端)
|
|
NIMMsgLogSubStatus | sub_status_ |
| 消息子状态(客户端)
|
|
IMMessageThreadInfo | thread_info_ |
|
NIMClientType | readonly_sender_client_type_ |
| 发送者客户端类型(只读)
|
|
std::string | readonly_sender_device_id_ |
| 发送者客户端设备ID(只读)
|
|
std::string | readonly_sender_nickname_ |
| 发送者昵称(只读)
|
|
int64_t | readonly_server_id_ |
| 消息ID(服务器,只读)
|
|
◆ IMMessage() [1/2]
nim::IMMessage::IMMessage |
( |
| ) |
|
|
inline |
◆ IMMessage() [2/2]
nim::IMMessage::IMMessage |
( |
const std::string & |
json_msg | ) |
|
|
inline |
◆ ToJsonObject()
std::string nim::IMMessage::ToJsonObject |
( |
bool |
use_to_send | ) |
const |
|
inline |
组装Json Object
- Returns
- Json Object
◆ ToJsonString()
std::string nim::IMMessage::ToJsonString |
( |
bool |
use_to_send | ) |
const |
|
inline |
组装Json Value字符串
- Returns
- string Json Value字符串
The documentation for this struct was generated from the following file: