NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim::QChatServerRoleInfo结构体 参考

#include <nim_qchat_role_cpp_def.h>

类 nim::QChatServerRoleInfo 继承关系图:
nim::QChatRoleInfoBase

Public 成员函数

 QChatServerRoleInfo ()=default
 
 QChatServerRoleInfo (const NIMQChatRoleInfo &info)
 
NIMQChatRoleInfo ToCParam () const
 
- Public 成员函数 继承自 nim::QChatRoleInfoBase
 QChatRoleInfoBase ()=default
 
 QChatRoleInfoBase (const NIMQChatRoleInfo &info)
 
NIMQChatRoleInfo ToCParam () const
 

Public 属性

uint32_t member_count = 0
 该身份组的成员数量,Everyone 身份组数量为 -1
 
uint64_t priority = 0
 身份组优先级,Everyone 最高为 0,数字越大优先级越低,自定义优先级区间 1~9007199254740991
 
- Public 属性 继承自 nim::QChatRoleInfoBase
uint64_t server_id = 0
 服务器ID
 
uint64_t role_id = 0
 身份组id
 
std::string role_name
 身份组名称
 
std::string role_icon
 身份组图片 URL
 
std::string extension
 身份组扩展字段
 
QChatPermission permissions {}
 身份组权限设定
 
NIMQChatRoleType role_type = kRoleTypeCustom
 身份组类型 1 表示 Everyone,2 表示定制身份组
 
uint64_t create_time = 0
 身份组创建时间
 
uint64_t update_time = 0
 身份组修改时间
 

额外继承的成员函数

- Protected 属性 继承自 nim::QChatRoleInfoBase
std::vector< NIMQChatPermissionGroupvec_permissions
 

构造及析构函数说明

◆ QChatServerRoleInfo() [1/2]

nim::QChatServerRoleInfo::QChatServerRoleInfo ( )
default

◆ QChatServerRoleInfo() [2/2]

nim::QChatServerRoleInfo::QChatServerRoleInfo ( const NIMQChatRoleInfo info)
inline

成员函数说明

◆ ToCParam()

NIMQChatRoleInfo nim::QChatServerRoleInfo::ToCParam ( ) const
inline

类成员变量说明

◆ member_count

uint32_t nim::QChatServerRoleInfo::member_count = 0

该身份组的成员数量,Everyone 身份组数量为 -1

◆ priority

uint64_t nim::QChatServerRoleInfo::priority = 0

身份组优先级,Everyone 最高为 0,数字越大优先级越低,自定义优先级区间 1~9007199254740991


该结构体的文档由以下文件生成: