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

聊天室信息 More...

#include <nim_chatroom_helper.h>

Public Member Functions

 ChatRoomInfo ()
 
void ParseFromJsonValue (const nim_cpp_wrapper_util::Json::Value &values)
 从JsonValue中解析得到聊天室信息 More...
 
std::string ToJsonString () const
 组装Json Value字符串 More...
 

Public Attributes

int64_t id_
 
std::string name_
 
std::string announcement_
 
std::string broadcast_url_
 
std::string creator_id_
 
int valid_flag_
 
std::string ext_
 
int online_count_
 
int mute_all_
 
int queuelevel
 

Detailed Description

聊天室信息

Constructor & Destructor Documentation

◆ ChatRoomInfo()

nim_chatroom::ChatRoomInfo::ChatRoomInfo ( )
inline

构造函数

Member Function Documentation

◆ ParseFromJsonValue()

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

从JsonValue中解析得到聊天室信息

Parameters
[in]values聊天室信息JsonValue
Returns
void

◆ ToJsonString()

std::string nim_chatroom::ChatRoomInfo::ToJsonString ( ) const
inline

组装Json Value字符串

Returns
void

Member Data Documentation

◆ announcement_

std::string nim_chatroom::ChatRoomInfo::announcement_

聊天室公告

◆ broadcast_url_

std::string nim_chatroom::ChatRoomInfo::broadcast_url_

视频直播拉流地址

◆ creator_id_

std::string nim_chatroom::ChatRoomInfo::creator_id_

聊天室创建者账号

◆ ext_

std::string nim_chatroom::ChatRoomInfo::ext_

第三方扩展字段, 必须为可以解析为json的非格式化的字符串, 长度4k

◆ id_

int64_t nim_chatroom::ChatRoomInfo::id_

聊天室ID

◆ mute_all_

int nim_chatroom::ChatRoomInfo::mute_all_

聊天室禁言标志 1:禁言,0:非禁言

◆ name_

std::string nim_chatroom::ChatRoomInfo::name_

聊天室名称

◆ online_count_

int nim_chatroom::ChatRoomInfo::online_count_

在线人数

◆ queuelevel

int nim_chatroom::ChatRoomInfo::queuelevel

int, 队列管理权限:0:所有人都有权限变更队列,1:只有主播管理员才能操作变更

◆ valid_flag_

int nim_chatroom::ChatRoomInfo::valid_flag_

聊天室有效标记, 1:有效,0:无效


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