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

消息属性设置 More...

#include <nim_talk_helper.h>

Public Member Functions

 MessageSetting ()
 
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

BoolStatus resend_flag_
 
BoolStatus server_history_saved_
 
BoolStatus roaming_
 
BoolStatus self_sync_
 
BoolStatus need_push_
 
BoolStatus push_need_badge_
 
BoolStatus push_need_prefix_
 
BoolStatus routable_
 
BoolStatus need_offline_
 
nim_cpp_wrapper_util::Json::Value push_payload_
 
std::string push_content_
 
nim_cpp_wrapper_util::Json::Value server_ext_
 
std::string local_ext_
 
BoolStatus is_force_push_
 
std::list< std::string > force_push_ids_list_
 
std::string force_push_content_
 
BoolStatus anti_spam_enable_
 
std::string anti_spam_content_
 
std::string anti_apam_biz_id_
 
int anti_apam_using_yidun_
 
BoolStatus client_anti_spam_hitting_
 
BoolStatus team_msg_need_ack_
 
BoolStatus team_msg_ack_sent_
 
int team_msg_unread_count_
 
BoolStatus is_update_session_
 
std::string yidun_anti_cheating_
 

Detailed Description

消息属性设置

Constructor & Destructor Documentation

◆ MessageSetting()

nim::MessageSetting::MessageSetting ( )
inline

构造函数

Member Function Documentation

◆ ParseMessageSetting()

void nim::MessageSetting::ParseMessageSetting ( const nim_cpp_wrapper_util::Json::Value &  message)
inline

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

Parameters
[in]message消息Json
Returns
void

◆ ToJsonValue()

void nim::MessageSetting::ToJsonValue ( nim_cpp_wrapper_util::Json::Value &  message) const
inline

组装Json Value字符串

Parameters
[out]message消息Json
Returns
void

Member Data Documentation

◆ anti_apam_biz_id_

std::string nim::MessageSetting::anti_apam_biz_id_

(可选)用户配置的对某些单条消息另外的反垃圾的业务ID

◆ anti_apam_using_yidun_

int nim::MessageSetting::anti_apam_using_yidun_

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

◆ anti_spam_content_

std::string nim::MessageSetting::anti_spam_content_

(可选)开发者自定义的反垃圾字段,长度限制5000

◆ anti_spam_enable_

BoolStatus nim::MessageSetting::anti_spam_enable_

是否需要过易盾反垃圾

◆ client_anti_spam_hitting_

BoolStatus nim::MessageSetting::client_anti_spam_hitting_

(可选) 是否命中客户端反垃圾

◆ force_push_content_

std::string nim::MessageSetting::force_push_content_

群组消息强推文本

◆ force_push_ids_list_

std::list<std::string> nim::MessageSetting::force_push_ids_list_

群组消息强推列表

◆ is_force_push_

BoolStatus nim::MessageSetting::is_force_push_

群组消息强推开关,强推全员设置true并强推列表为空

◆ is_update_session_

BoolStatus nim::MessageSetting::is_update_session_

(可选) 消息是否需要刷新到session服务,0:否,1:是;只有消息存离线的情况下,才会判断该参数,缺省:1

◆ local_ext_

std::string nim::MessageSetting::local_ext_

本地扩展字段, 格式不限,长度限制1024

◆ need_offline_

BoolStatus nim::MessageSetting::need_offline_

是否支持离线消息

◆ need_push_

BoolStatus nim::MessageSetting::need_push_

是否需要推送

◆ push_content_

std::string nim::MessageSetting::push_content_

自定义推送文案,长度限制200字节

◆ push_need_badge_

BoolStatus nim::MessageSetting::push_need_badge_

是否要做消息计数

◆ push_need_prefix_

BoolStatus nim::MessageSetting::push_need_prefix_

需要推送昵称

◆ push_payload_

nim_cpp_wrapper_util::Json::Value nim::MessageSetting::push_payload_

第三方自定义的推送属性,长度2048

◆ resend_flag_

BoolStatus nim::MessageSetting::resend_flag_

该消息是否为重发状态

◆ roaming_

BoolStatus nim::MessageSetting::roaming_

该消息是否支持漫游

◆ routable_

BoolStatus nim::MessageSetting::routable_

是否要抄送

◆ self_sync_

BoolStatus nim::MessageSetting::self_sync_

该消息是否支持发送者多端同步

◆ server_ext_

nim_cpp_wrapper_util::Json::Value nim::MessageSetting::server_ext_

第三方扩展字段, 长度限制1024

◆ server_history_saved_

BoolStatus nim::MessageSetting::server_history_saved_

该消息是否存储云端历史

◆ team_msg_ack_sent_

BoolStatus nim::MessageSetting::team_msg_ack_sent_

群消息是否需要已读业务,0:不需要,1:需要 是否已经发送群消息已读回执

◆ team_msg_unread_count_

int nim::MessageSetting::team_msg_unread_count_

群消息未读数

◆ yidun_anti_cheating_

std::string nim::MessageSetting::yidun_anti_cheating_

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


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