聊天室消息属性设置
更多...
#include <nim_chatroom_helper.h>
◆ ChatRoomMessageSetting()
nim_chatroom::ChatRoomMessageSetting::ChatRoomMessageSetting |
( |
| ) |
|
|
inline |
◆ ParseMessageSetting()
从Json Value解析出消息属性设置
- 参数
-
- 返回
- void
◆ ToJsonValue()
组装Json Value字符串
- 参数
-
- 返回
- void
◆ anti_spam_bizid_
std::string nim_chatroom::ChatRoomMessageSetting::anti_spam_bizid_ |
(可选)用户配置的对某些单条消息另外的反垃圾的业务ID
◆ anti_spam_content_
std::string nim_chatroom::ChatRoomMessageSetting::anti_spam_content_ |
(可选)开发者自定义的反垃圾字段,长度限制2048
◆ anti_spam_enable_
bool nim_chatroom::ChatRoomMessageSetting::anti_spam_enable_ |
◆ anti_spam_ext_
std::string nim_chatroom::ChatRoomMessageSetting::anti_spam_ext_ |
(可选)String, 易盾反垃圾扩展字段,限制json,长度限制1024
◆ anti_spam_using_yidun_
int nim_chatroom::ChatRoomMessageSetting::anti_spam_using_yidun_ |
(可选) 单条消息是否使用易盾反垃圾 0:(在开通易盾的情况下)不过易盾反垃圾
◆ env_config_
std::string nim_chatroom::ChatRoomMessageSetting::env_config_ |
◆ ext_
std::string nim_chatroom::ChatRoomMessageSetting::ext_ |
第三方扩展字段, 必须为可以解析为json的非格式化的字符串,长度限制4096
◆ high_priority_
int nim_chatroom::ChatRoomMessageSetting::high_priority_ |
高优先级消息标记,1:是; 非高优先级消息不带该字段,服务器填写,发送方不需要填写
◆ history_save_
bool nim_chatroom::ChatRoomMessageSetting::history_save_ |
◆ location_
◆ resend_flag_
bool nim_chatroom::ChatRoomMessageSetting::resend_flag_ |
◆ to_accids
std::list<std::string> nim_chatroom::ChatRoomMessageSetting::to_accids |
(可选)消息接受者,如果设置了本字段,且不为空,则本消息为聊天室定向消息(聊天室定向消息不会存历史)
◆ yidun_anti_cheating_
std::string nim_chatroom::ChatRoomMessageSetting::yidun_anti_cheating_ |
(可选)String, 易盾反垃圾增强反作弊专属字段, 限制json,长度限制1024
该结构体的文档由以下文件生成:
- D:/GitLab/builds/5sbaxrcd/0/nim-pc/california/nim-cross-platform-sdk/exports/wrapper/nim_chatroom_cpp_wrapper/helper/nim_chatroom_helper.h