NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim::QChatChannelInfo结构体 参考

#include <nim_qchat_channel_cpp_def.h>

Public 成员函数

 QChatChannelInfo ()=default
 
 QChatChannelInfo (const NIMQChatChannelInfo &c_param)
 
NIMQChatChannelInfo ToCParam () const
 

Public 属性

uint64_t server_id {0}
 server id
 
uint64_t channel_id {0}
 channel id
 
std::string name {""}
 名称
 
std::string topic {""}
 主题
 
std::string custom {""}
 自定义字段
 
NIMQChatChannelType type {kNIMQChatChannelTypeText}
 频道类型,0:消息频道
 
std::string owner {""}
 拥有者
 
NIMQChatChannelViewMode view_mode {kNIMQChatChannelViewModePublic}
 查看模式,只有在category_id为0或sync_mode为kNIMQChatChannelSyncModeNoSync时有效
 
NIMQChatChannelVisitorMode visitor_mode {kNIMQChatChannelVisitorModeFollow}
 游客访问模式
 
bool valid_flag {false}
 有效标记,false:无效 true:有效
 
uint64_t create_time {0}
 创建时间
 
uint64_t update_time {0}
 更新时间
 
uint64_t category_id {0}
 频道分组ID
 
NIMQChatChannelSyncMode sync_mode {kNIMQChatChannelSyncModeSync}
 频道分组同步模式
 
uint64_t reorder_weight {0}
 自定义排序权重值
 

构造及析构函数说明

◆ QChatChannelInfo() [1/2]

nim::QChatChannelInfo::QChatChannelInfo ( )
default

◆ QChatChannelInfo() [2/2]

nim::QChatChannelInfo::QChatChannelInfo ( const NIMQChatChannelInfo & c_param)
inline

成员函数说明

◆ ToCParam()

NIMQChatChannelInfo nim::QChatChannelInfo::ToCParam ( ) const
inline

类成员变量说明

◆ category_id

uint64_t nim::QChatChannelInfo::category_id {0}

频道分组ID

◆ channel_id

uint64_t nim::QChatChannelInfo::channel_id {0}

channel id

◆ create_time

uint64_t nim::QChatChannelInfo::create_time {0}

创建时间

◆ custom

std::string nim::QChatChannelInfo::custom {""}

自定义字段

◆ name

std::string nim::QChatChannelInfo::name {""}

名称

◆ owner

std::string nim::QChatChannelInfo::owner {""}

拥有者

◆ reorder_weight

uint64_t nim::QChatChannelInfo::reorder_weight {0}

自定义排序权重值

◆ server_id

uint64_t nim::QChatChannelInfo::server_id {0}

server id

◆ sync_mode

NIMQChatChannelSyncMode nim::QChatChannelInfo::sync_mode {kNIMQChatChannelSyncModeSync}

频道分组同步模式

◆ topic

std::string nim::QChatChannelInfo::topic {""}

主题

◆ type

NIMQChatChannelType nim::QChatChannelInfo::type {kNIMQChatChannelTypeText}

频道类型,0:消息频道

◆ update_time

uint64_t nim::QChatChannelInfo::update_time {0}

更新时间

◆ valid_flag

bool nim::QChatChannelInfo::valid_flag {false}

有效标记,false:无效 true:有效

◆ view_mode

NIMQChatChannelViewMode nim::QChatChannelInfo::view_mode {kNIMQChatChannelViewModePublic}

查看模式,只有在category_id为0或sync_mode为kNIMQChatChannelSyncModeNoSync时有效

◆ visitor_mode

NIMQChatChannelVisitorMode nim::QChatChannelInfo::visitor_mode {kNIMQChatChannelVisitorModeFollow}

游客访问模式


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