![]() |
NIM 跨平台 C++ SDK
|
#include <nim_qchat_message_cpp_def.h>
Public 类型 | |
| using | AttachRawCreateFunc = std::function< std::shared_ptr< IQChatAttachInterface >(const std::string &)> |
| using | AttachCreateFunc = std::function< std::shared_ptr< IQChatAttachInterface >(const NIMQChatMessage &)> |
| using | AttachParseFunc = std::function< void(const std::shared_ptr< IQChatAttachInterface > &, NIMQChatMessage &)> |
Public 成员函数 | |
| QChatMessageSend ()=default | |
| QChatMessageSend (const NIMQChatMessage &c_param) | |
| NIMQChatMessage | ToCParam () const |
静态 Public 成员函数 | |
| static std::shared_ptr< IQChatAttachInterface > | CreateAttachWithRawData (NIMQChatMsgType type, const std::string &raw_data) |
Public 属性 | |
| 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 |
| 环境变量 | |
静态 Public 属性 | |
| static std::map< NIMQChatMsgType, AttachRawCreateFunc > | attach_raw_create_function_ |
Protected 属性 | |
| std::vector< char * > | c_mention_accids |
Private 成员函数 | |
| std::shared_ptr< IQChatAttachInterface > | CreateAttach (const NIMQChatMessage &m) |
| void | ParseAttach (const std::shared_ptr< IQChatAttachInterface > &p, NIMQChatMessage &cp) const |
静态 Private 成员函数 | |
| template<typename ATTACH_TYPE > | |
| static std::shared_ptr< ATTACH_TYPE > | GetOriginAttach (const std::shared_ptr< IQChatAttachInterface > &p) |
Private 属性 | |
| std::map< NIMQChatMsgType, AttachCreateFunc > | attach_create_functions_ |
| std::map< NIMQChatMsgType, AttachParseFunc > | attach_parse_functions_ |
| using nim::QChatMessageSend::AttachCreateFunc = std::function<std::shared_ptr<IQChatAttachInterface>(const NIMQChatMessage&)> |
| using nim::QChatMessageSend::AttachParseFunc = std::function<void(const std::shared_ptr<IQChatAttachInterface>&, NIMQChatMessage&)> |
| using nim::QChatMessageSend::AttachRawCreateFunc = std::function<std::shared_ptr<IQChatAttachInterface>(const std::string&)> |
|
default |
|
inline |
|
inlineprivate |
|
inlinestatic |
|
inlinestaticprivate |
|
inlineprivate |
|
inline |
| QChatMessageAntiSpamInfo nim::QChatMessageSend::anti_spam_info |
反垃圾信息
|
private |
|
private |
|
static |
|
mutableprotected |
| uint64_t nim::QChatMessageSend::channel_id {0} |
消息所属的channel id
| std::string nim::QChatMessageSend::env |
环境变量
| std::vector<std::string> nim::QChatMessageSend::mention_accids {} |
@成员列表
| std::vector<uint64_t> nim::QChatMessageSend::mention_role_ids {} |
@身份组列表
| std::shared_ptr<IQChatAttachInterface> nim::QChatMessageSend::msg_attach {std::make_shared<QChatDefaultAttach>()} |
消息附件
| std::string nim::QChatMessageSend::msg_body {""} |
消息内容
| std::string nim::QChatMessageSend::msg_ext {""} |
消息扩展字段
| std::string nim::QChatMessageSend::msg_id {""} |
消息重发时需要指定此参数
| uint32_t nim::QChatMessageSend::msg_sub_type {0} |
可选, 消息子类型
| NIMQChatMsgType nim::QChatMessageSend::msg_type {kNIMQChatMsgTypeUnknown} |
消息类型
| std::string nim::QChatMessageSend::push_content {""} |
自定义的推送内容
| std::string nim::QChatMessageSend::push_payload {""} |
自定义的推送属性,限制json
| uint64_t nim::QChatMessageSend::server_id {0} |
消息所属的server id
| QChatMessageThreadInfo nim::QChatMessageSend::thread_info |
thread 消息相关信息