#include <nim_qchat_message_cpp_def.h>
|
NIMQChatMessageStatus | status {kMsgStatusNormal} |
| 消息状态
|
|
uint64_t | msg_server_id {0} |
| 更新消息时消息服务器端id
|
|
std::string | from_accid {""} |
| 消息发送者的accid
|
|
uint32_t | from_client_type {0} |
| 消息发送者的客户端类型
|
|
std::string | from_device_id {""} |
| 消息发送者的设备id
|
|
std::string | from_nick {""} |
| 消息发送者的昵称
|
|
uint64_t | timestamp {0} |
| 更新消息时消息创建的时间戳,以服务器返回信息为准
|
|
uint64_t | update_timestamp {0} |
| 消息更新时间戳
|
|
NIMQChatMessageNotifyReason | notify_reason {kMessageNotifyReasonUnkonw} |
| 消息下发原因
|
|
bool | is_anti_spamed {false} |
| 是否被反垃圾
|
|
std::string | anti_spam_result |
| 反垃圾结果
|
|
std::string | callback_ext |
| 第三方回调扩展字段
|
|
QChatMessageUpdateContent | update_content |
| 上次消息变更内容
|
|
QChatMessageUpdateOpeInfo | update_ope_info |
| 上次消息变更操作信息
|
|
bool | accids_of_mentioned_roles_available {false} |
| @身份组所包含的accid列表是否有效
|
|
std::vector< std::string > | accids_of_mentioned_roles |
| @身份组所包含的accid列表(部分)
|
|
uint64_t | server_id {0} |
| 消息所属的server id
|
|
uint64_t | channel_id {0} |
| 消息所属的channel id
|
|
NIMQChatMsgType | msg_type {kNIMQChatMsgTypeUnknown} |
| 消息类型
|
|
uint32_t | msg_sub_type {0} |
| 可选, 消息子类型
|
|
std::string | msg_body {""} |
| 消息内容
|
|
std::shared_ptr< IQChatAttachInterface > | msg_attach {std::make_shared<QChatDefaultAttach>()} |
| 消息附件
|
|
std::string | msg_ext {""} |
| 消息扩展字段
|
|
std::string | msg_id {""} |
| 消息重发时需要指定此参数
|
|
bool | resend_flag {false} |
| 重发标记,false:不是重发,true:是重发
|
|
bool | mention_all {false} |
| 是否@所有人,false:否,true:是
|
|
std::vector< std::string > | mention_accids {} |
| @成员列表
|
|
std::vector< uint64_t > | mention_role_ids {} |
| @身份组列表
|
|
bool | history_enable {true} |
| 该消息是否存储云端历史,0:不支持,1:支持
|
|
std::string | push_payload {""} |
| 自定义的推送属性,限制json
|
|
std::string | push_content {""} |
| 自定义的推送内容
|
|
bool | push_enable {false} |
| 是否需要推送, false: 不需要, true: 需要, 默认 false
|
|
bool | need_badge {true} |
| 是否需要消息计数, false: 不需要, true: 需要, 默认 true
|
|
bool | need_push_nick {true} |
| 是否需要推送昵称, false: 不需要, true: 需要, 默认 true
|
|
bool | route_enable {true} |
| 是否需要抄送, false: 不需要, true: 需要, 默认 true
|
|
QChatMessageThreadInfo | thread_info |
| thread 消息相关信息
|
|
QChatMessageAntiSpamInfo | anti_spam_info |
| 反垃圾信息
|
|
std::string | env |
| 环境变量
|
|
◆ QChatMessage() [1/3]
nim::QChatMessage::QChatMessage |
( |
| ) |
|
|
default |
◆ QChatMessage() [2/3]
◆ QChatMessage() [3/3]
◆ ToCParam()
◆ accids_of_mentioned_roles
std::vector<std::string> nim::QChatMessage::accids_of_mentioned_roles |
◆ accids_of_mentioned_roles_available
bool nim::QChatMessage::accids_of_mentioned_roles_available {false} |
◆ anti_spam_result
std::string nim::QChatMessage::anti_spam_result |
◆ c_accids_of_mentioned_roles
std::vector<char*> nim::QChatMessage::c_accids_of_mentioned_roles |
|
mutableprotected |
◆ callback_ext
std::string nim::QChatMessage::callback_ext |
◆ from_accid
std::string nim::QChatMessage::from_accid {""} |
◆ from_client_type
uint32_t nim::QChatMessage::from_client_type {0} |
◆ from_device_id
std::string nim::QChatMessage::from_device_id {""} |
◆ from_nick
std::string nim::QChatMessage::from_nick {""} |
◆ is_anti_spamed
bool nim::QChatMessage::is_anti_spamed {false} |
◆ msg_server_id
uint64_t nim::QChatMessage::msg_server_id {0} |
◆ notify_reason
◆ status
◆ timestamp
uint64_t nim::QChatMessage::timestamp {0} |
◆ update_content
◆ update_ope_info
◆ update_timestamp
uint64_t nim::QChatMessage::update_timestamp {0} |
该结构体的文档由以下文件生成:
- D:/GitLab/builds/5sbaxrcd/0/nim-pc/california/nim-cross-platform-sdk/exports/wrapper/nim_qchat_cpp_wrapper/helper/nim_qchat_message_cpp_def.h