NIM SDK API  9.0.0
Public Member Functions | Public Attributes | List of all members
nim::IMMessage Struct Reference

Public Member Functions

 IMMessage ()
 
 IMMessage (const std::string &json_msg)
 
nim_cpp_wrapper_util::Json::Value ToJsonObject (bool use_to_send) const
 组装Json Object More...
 
std::string ToJsonString (bool use_to_send) const
 组装Json Value字符串 More...
 

Public Attributes

NIMResCode rescode_
 
NIMMessageFeature feature_
 
NIMSessionType session_type_
 
std::string receiver_accid_
 
std::string sender_accid_
 
int64_t timetag_
 
std::string content_
 
NIMMessageType type_
 
std::string attach_
 
std::string client_msg_id_
 
MessageSetting msg_setting_
 
std::string third_party_callback_ext_
 
int32_t sub_type_
 
std::string local_res_path_
 
std::string local_talk_id_
 
std::string local_res_id_
 
NIMMsgLogStatus status_
 
NIMMsgLogSubStatus sub_status_
 
IMMessageThreadInfo thread_info_
 
NIMClientType readonly_sender_client_type_
 
std::string readonly_sender_device_id_
 
std::string readonly_sender_nickname_
 
int64_t readonly_server_id_
 

Constructor & Destructor Documentation

◆ IMMessage() [1/2]

nim::IMMessage::IMMessage ( )
inline

构造函数

◆ IMMessage() [2/2]

nim::IMMessage::IMMessage ( const std::string &  json_msg)
inline

构造函数

Member Function Documentation

◆ 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字符串

Member Data Documentation

◆ attach_

std::string nim::IMMessage::attach_

消息附件 ,长度限制10000

◆ client_msg_id_

std::string nim::IMMessage::client_msg_id_

消息ID(客户端)

◆ content_

std::string nim::IMMessage::content_

消息内容,长度限制10000

◆ feature_

NIMMessageFeature nim::IMMessage::feature_

消息属性

◆ local_res_id_

std::string nim::IMMessage::local_res_id_

媒体文件ID(客户端)

◆ local_res_path_

std::string nim::IMMessage::local_res_path_

媒体文件本地绝对路径(客户端)

◆ local_talk_id_

std::string nim::IMMessage::local_talk_id_

会话ID(客户端)

◆ msg_setting_

MessageSetting nim::IMMessage::msg_setting_

消息属性设置

◆ readonly_sender_client_type_

NIMClientType nim::IMMessage::readonly_sender_client_type_

发送者客户端类型(只读)

◆ readonly_sender_device_id_

std::string nim::IMMessage::readonly_sender_device_id_

发送者客户端设备ID(只读)

◆ readonly_sender_nickname_

std::string nim::IMMessage::readonly_sender_nickname_

发送者昵称(只读)

◆ readonly_server_id_

int64_t nim::IMMessage::readonly_server_id_

消息ID(服务器,只读)

◆ receiver_accid_

std::string nim::IMMessage::receiver_accid_

接收者ID

◆ rescode_

NIMResCode nim::IMMessage::rescode_

错误码

◆ sender_accid_

std::string nim::IMMessage::sender_accid_

发送者ID

◆ session_type_

NIMSessionType nim::IMMessage::session_type_

会话类型

◆ status_

NIMMsgLogStatus nim::IMMessage::status_

消息状态(客户端)

◆ sub_status_

NIMMsgLogSubStatus nim::IMMessage::sub_status_

消息子状态(客户端)

◆ sub_type_

int32_t nim::IMMessage::sub_type_

消息的子类型,客户端定义,服务器透传

◆ third_party_callback_ext_

std::string nim::IMMessage::third_party_callback_ext_

第三方回调回来的自定义扩展字段 v7.8添加

◆ timetag_

int64_t nim::IMMessage::timetag_

消息时间戳(毫秒)

◆ type_

NIMMessageType nim::IMMessage::type_

消息类型


The documentation for this struct was generated from the following file: