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

聊天室成员信息 More...

#include <nim_chatroom_helper.h>

Public Member Functions

 ChatRoomMemberInfo ()
 
void ParseFromJsonValue (const nim_cpp_wrapper_util::Json::Value &value)
 
std::string ToJsonString () const
 组装Json Value字符串 More...
 

Public Attributes

int64_t room_id_
 
std::string account_id_
 
std::string tags_
 
int type_
 
int level_
 
std::string nick_
 
std::string avatar_
 
std::string ext_
 
std::string notify_tags_
 
NIMChatRoomOnlineState state_
 
NIMChatRoomGuestFlag guest_flag_
 
int64_t enter_timetag_
 
bool is_blacklist_
 
bool is_muted_
 
bool is_valid_
 
int64_t update_timetag_
 
bool temp_muted_
 
int64_t temp_muted_duration_
 

Detailed Description

聊天室成员信息

Constructor & Destructor Documentation

◆ ChatRoomMemberInfo()

nim_chatroom::ChatRoomMemberInfo::ChatRoomMemberInfo ( )
inline

构造函数

Member Function Documentation

◆ ParseFromJsonValue()

void nim_chatroom::ChatRoomMemberInfo::ParseFromJsonValue ( const nim_cpp_wrapper_util::Json::Value &  value)
inline

构造函数

◆ ToJsonString()

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

组装Json Value字符串

Returns
void

Member Data Documentation

◆ account_id_

std::string nim_chatroom::ChatRoomMemberInfo::account_id_

成员账号

◆ avatar_

std::string nim_chatroom::ChatRoomMemberInfo::avatar_

聊天室内的头像,预留字段, 可从Uinfo中取icon

◆ enter_timetag_

int64_t nim_chatroom::ChatRoomMemberInfo::enter_timetag_

进入聊天室的时间点,对于离线成员该字段为空

◆ ext_

std::string nim_chatroom::ChatRoomMemberInfo::ext_

开发者扩展字段, 长度限制2k, 必须为可以解析为json的非格式化的字符串

◆ guest_flag_

NIMChatRoomGuestFlag nim_chatroom::ChatRoomMemberInfo::guest_flag_

是否是普通游客类型,0:不是游客,1:是游客; 游客身份在聊天室中没有持久化, 只有在线时才会有内存状态

◆ is_blacklist_

bool nim_chatroom::ChatRoomMemberInfo::is_blacklist_

是黑名单

◆ is_muted_

bool nim_chatroom::ChatRoomMemberInfo::is_muted_

是禁言用户

◆ is_valid_

bool nim_chatroom::ChatRoomMemberInfo::is_valid_

记录有效标记位

◆ level_

int nim_chatroom::ChatRoomMemberInfo::level_

成员级别: >=0表示用户开发者可以自定义的级别

◆ nick_

std::string nim_chatroom::ChatRoomMemberInfo::nick_

聊天室内的昵称字段,预留字段, 可从Uinfo中取

◆ notify_tags_

std::string nim_chatroom::ChatRoomMemberInfo::notify_tags_

聊天室成员登录时指定的 notify_tags 信息

◆ room_id_

int64_t nim_chatroom::ChatRoomMemberInfo::room_id_

聊天室id

◆ state_

NIMChatRoomOnlineState nim_chatroom::ChatRoomMemberInfo::state_

成员是否处于在线状态, 仅特殊成员才可能离线, 对游客/匿名用户而言只能是在线

◆ tags_

std::string nim_chatroom::ChatRoomMemberInfo::tags_

聊天室成员登录时指定的 tag 信息

◆ temp_muted_

bool nim_chatroom::ChatRoomMemberInfo::temp_muted_

临时禁言

◆ temp_muted_duration_

int64_t nim_chatroom::ChatRoomMemberInfo::temp_muted_duration_

临时禁言的解除时长,单位秒

◆ type_

int nim_chatroom::ChatRoomMemberInfo::type_

成员类型, -2:未设置;-1:受限用户; 0:普通;1:创建者;2:管理员;3:临时用户,非固定成员;4:匿名非注册用户,非云信注册用户

◆ update_timetag_

int64_t nim_chatroom::ChatRoomMemberInfo::update_timetag_

固定成员的记录更新时间,用于固定成员列表的排列查询


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