NIM CPP SDK  7.8.1
Public Member Functions | Public Attributes | List of all members
nim_chatroom::ChatRoomMessageSetting Struct Reference

聊天室消息属性设置 More...

#include <nim_chatroom_helper.h>

Public Member Functions

 ChatRoomMessageSetting ()
 
void ToJsonValue (nim_cpp_wrapper_util::Json::Value &message) const
 组装Json Value字符串 More...
 
void ParseMessageSetting (const nim_cpp_wrapper_util::Json::Value &message)
 从Json Value解析出消息属性设置 More...
 

Public Attributes

bool resend_flag_
 
std::string ext_
 
bool anti_spam_enable_
 
std::string anti_spam_content_
 
bool history_save_
 
std::string anti_spam_bizid_
 
int anti_spam_using_yidun_
 
int high_priority_
 
std::string yidun_anti_cheating_
 

Detailed Description

聊天室消息属性设置

Constructor & Destructor Documentation

◆ ChatRoomMessageSetting()

nim_chatroom::ChatRoomMessageSetting::ChatRoomMessageSetting ( )
inline

构造函数

Member Function Documentation

◆ ParseMessageSetting()

void nim_chatroom::ChatRoomMessageSetting::ParseMessageSetting ( const nim_cpp_wrapper_util::Json::Value &  message)
inline

从Json Value解析出消息属性设置

Parameters
[in]message消息Json
Returns
void

◆ ToJsonValue()

void nim_chatroom::ChatRoomMessageSetting::ToJsonValue ( nim_cpp_wrapper_util::Json::Value &  message) const
inline

组装Json Value字符串

Parameters
[out]message消息Json
Returns
void

Member Data Documentation

◆ 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_using_yidun_

int nim_chatroom::ChatRoomMessageSetting::anti_spam_using_yidun_

int, (可选) 单条消息是否使用易盾反垃圾 0:(在开通易盾的情况下)不过易盾反垃圾而是通用反垃圾 其他都是按照原来的规则

◆ 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_

(可选)是否存云端消息历史,默认存

◆ resend_flag_

bool nim_chatroom::ChatRoomMessageSetting::resend_flag_

消息重发标记位

◆ yidun_anti_cheating_

std::string nim_chatroom::ChatRoomMessageSetting::yidun_anti_cheating_

(可选)String, 易盾反垃圾增强反作弊专属字段, 限制json,长度限制1024


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