NIM SDK API  9.0.0
Public Member Functions | Public Attributes | List of all members
nim_chatroom::ChatRoomNotification Struct Reference

聊天室通知 More...

#include <nim_chatroom_helper.h>

Public Member Functions

 ChatRoomNotification ()
 
void ParseFromJsonValue (const nim_cpp_wrapper_util::Json::Value &values)
 从JsonValue中解析得到聊天室通知 More...
 
std::string ToJsonString () const
 

Public Attributes

NIMChatRoomNotificationId id_
 
std::string ext_
 
std::string operator_id_
 
std::string operator_nick_
 
std::list< std::string > target_nick_
 
std::list< std::string > target_ids_
 
int64_t temp_mute_duration_
 
bool muted_
 
bool temp_muted_
 
std::string queue_change_
 
std::string target_tag_
 
std::string msg_id_
 
uint64_t msg_timetag_
 

Detailed Description

聊天室通知

Constructor & Destructor Documentation

◆ ChatRoomNotification()

nim_chatroom::ChatRoomNotification::ChatRoomNotification ( )
inline

构造函数

Member Function Documentation

◆ ParseFromJsonValue()

void nim_chatroom::ChatRoomNotification::ParseFromJsonValue ( const nim_cpp_wrapper_util::Json::Value &  values)
inline

从JsonValue中解析得到聊天室通知

Parameters
[in]values聊天室通知JsonValue
Returns
void

Member Data Documentation

◆ ext_

std::string nim_chatroom::ChatRoomNotification::ext_

上层开发自定义的事件通知扩展字段, 必须为可以解析为json的非格式化的字符串

◆ id_

NIMChatRoomNotificationId nim_chatroom::ChatRoomNotification::id_

通知类型

◆ msg_id_

std::string nim_chatroom::ChatRoomNotification::msg_id_

Added IM 8.7.0 当通知为聊天室撤回消息事件时才有,代表当前被撤回的消息 ID

◆ msg_timetag_

uint64_t nim_chatroom::ChatRoomNotification::msg_timetag_

当通知为聊天室撤回消息事件时才有,代表当前被撤回消息的时间戳

◆ muted_

bool nim_chatroom::ChatRoomNotification::muted_

当通知为聊天室进入事件才有,代表是否禁言状态

◆ operator_id_

std::string nim_chatroom::ChatRoomNotification::operator_id_

操作者的账号accid

◆ operator_nick_

std::string nim_chatroom::ChatRoomNotification::operator_nick_

操作者的账号nick

◆ queue_change_

std::string nim_chatroom::ChatRoomNotification::queue_change_

当通知为聊天室队列变更事件才有,代表变更的内容

◆ target_ids_

std::list<std::string> nim_chatroom::ChatRoomNotification::target_ids_

被操作者的accid列表

◆ target_nick_

std::list<std::string> nim_chatroom::ChatRoomNotification::target_nick_

被操作者的账号nick列表

◆ target_tag_

std::string nim_chatroom::ChatRoomNotification::target_tag_

Added IM 8.4.0 当通知为聊天室按标签禁言/解禁事件才有,代表当前被禁言的 tag

◆ temp_mute_duration_

int64_t nim_chatroom::ChatRoomNotification::temp_mute_duration_

当通知为临时禁言相关时有该值,禁言时代表本次禁言的时长(秒),解禁时代表本次禁言剩余时长(秒); 当通知为聊天室进入事件,代表临时禁言时长(秒); 其他通知事件不带该数据

◆ temp_muted_

bool nim_chatroom::ChatRoomNotification::temp_muted_

当通知为聊天室进入事件才有,代表是否临时禁言状态


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