聊天室通知
更多...
#include <nim_chatroom_helper.h>
◆ ChatRoomNotification()
nim_chatroom::ChatRoomNotification::ChatRoomNotification |
( |
| ) |
|
|
inline |
◆ ParseFromJsonValue()
从JsonValue中解析得到聊天室通知
- 参数
-
- 返回
- void
◆ ToJsonObject()
◆ ToJsonString()
std::string nim_chatroom::ChatRoomNotification::ToJsonString |
( |
| ) |
const |
|
inline |
◆ ext_
std::string nim_chatroom::ChatRoomNotification::ext_ |
上层开发自定义的事件通知扩展字段, 必须为可以解析为 json 的非格式化的字符串
◆ id_
◆ msg_id_
std::string nim_chatroom::ChatRoomNotification::msg_id_ |
当通知为聊天室撤回消息事件时才有,代表当前被撤回的消息 ID
Added IM 8.7.0
◆ msg_timetag_
uint64_t nim_chatroom::ChatRoomNotification::msg_timetag_ {0} |
当通知为聊天室撤回消息事件时才有,代表当前被撤回消息的时间戳
◆ muted_
bool nim_chatroom::ChatRoomNotification::muted_ |
◆ operator_id_
std::string nim_chatroom::ChatRoomNotification::operator_id_ |
◆ operator_nick_
std::string nim_chatroom::ChatRoomNotification::operator_nick_ |
◆ queue_change_
std::string nim_chatroom::ChatRoomNotification::queue_change_ |
◆ target_ids_
std::list<std::string> nim_chatroom::ChatRoomNotification::target_ids_ |
◆ target_nick_
std::list<std::string> nim_chatroom::ChatRoomNotification::target_nick_ |
◆ target_tag_
std::string nim_chatroom::ChatRoomNotification::target_tag_ |
当通知为聊天室按标签禁言/解禁、聊天室成员标签变更事件才有,代表当前被禁言或变更的 tag 信息
Added IM 8.4.0
◆ temp_mute_duration_
int64_t nim_chatroom::ChatRoomNotification::temp_mute_duration_ |
当通知为临时禁言相关时有该值,禁言时代表本次禁言的时长(秒),解禁时代表本次禁言剩余时长(秒) 当通知为聊天室进入事件,代表临时禁言时长(秒); 其他通知事件不带该数据 当通知为聊天室进入事件才有,代表是否禁言状态
◆ temp_muted_
bool nim_chatroom::ChatRoomNotification::temp_muted_ |
该结构体的文档由以下文件生成:
- D:/GitLab/builds/5sbaxrcd/0/nim-pc/california/nim-cross-platform-sdk/exports/wrapper/nim_chatroom_cpp_wrapper/helper/nim_chatroom_helper.h