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

群组信息 更多...

#include <nim_team_helper.h>

Public 成员函数

 TeamInfo (const std::string &team_id, const nim::NIMTeamType type)
 
 TeamInfo ()
 
void operator= (const TeamInfo &new_info)
 
void Update (const TeamInfo &new_info)
 
void SetTeamID (const std::string &id)
 
std::string GetTeamID () const
 
void SetName (const std::string &name)
 
std::string GetName () const
 
void SetType (nim::NIMTeamType type)
 
nim::NIMTeamType GetType () const
 
bool TypeIsValid () const
 
void SetOwnerID (const std::string &id)
 
std::string GetOwnerID () const
 
void SetMemberMaxCount (int count)
 
int GetMemberMaxCount () const
 
void SetProperty (const std::string &prop)
 
std::string GetProperty () const
 
void SetValid (bool valid)
 
bool IsValid () const
 
void SetMemberCount (int count)
 
int GetMemberCount () const
 
void SetMemberListTimetag (int64_t timetag)
 
int64_t GetMemberListTimetag () const
 
void SetCreateTimetag (int64_t timetag)
 
int64_t GetCreateTimetag () const
 
void SetUpdateTimetag (int64_t timetag)
 
int64_t GetUpdateTimetag () const
 
void SetMemberValid (bool valid)
 
bool IsMemberValid () const
 
void SetIntro (const std::string &intro)
 
std::string GetIntro () const
 
void SetAnnouncement (const std::string &announcement)
 
std::string GetAnnouncement () const
 
void SetJoinMode (nim::NIMTeamJoinMode mode)
 
nim::NIMTeamJoinMode GetJoinMode () const
 
void SetCustom (const std::string &custom)
 
std::string GetCustom () const
 
void SetServerCustom (const std::string &custom)
 
std::string GetServerCustom () const
 
void SetIcon (const std::string &icon)
 
std::string GetIcon () const
 
void SetBeInviteMode (NIMTeamBeInviteMode mode)
 
NIMTeamBeInviteMode GetBeInviteMode () const
 
void SetInviteMode (NIMTeamInviteMode mode)
 
NIMTeamInviteMode GetInviteMode () const
 
void SetUpdateInfoMode (NIMTeamUpdateInfoMode mode)
 
NIMTeamUpdateInfoMode GetUpdateInfoMode () const
 
void SetUpdateCustomMode (NIMTeamUpdateCustomMode mode)
 
NIMTeamUpdateCustomMode GetUpdateCustomMode () const
 
void SetMute (NIMTeamMuteType mute_type)
 
NIMTeamMuteType GetMuteType () const
 
bool ExistValue (const std::string &nim_team_info_key) const
 群组信息数据标记Key对应的数据是否有效(存在,非初始值状态)
 
std::string ToJsonString () const
 组装Json Value字符串
 
nim_cpp_wrapper_util::Json::Value ToJsonValue () const
 获取JsonValue格式的数据
 

Public 属性

nim_cpp_wrapper_util::Json::Value team_info_json_value_
 

Private 成员函数

void SetLevel (int level)
 
int GetLevel () const
 

详细描述

群组信息

构造及析构函数说明

◆ TeamInfo() [1/2]

nim::TeamInfo::TeamInfo ( const std::string &  team_id,
const nim::NIMTeamType  type 
)
inline

构造函数

◆ TeamInfo() [2/2]

nim::TeamInfo::TeamInfo ( )
inline

构造函数

成员函数说明

◆ ExistValue()

bool nim::TeamInfo::ExistValue ( const std::string &  nim_team_info_key) const
inline

群组信息数据标记Key对应的数据是否有效(存在,非初始值状态)

参数
[in]nim_team_info_key群组信息数据标记Key nim_team_def.h
返回
bool 有效性

◆ GetAnnouncement()

std::string nim::TeamInfo::GetAnnouncement ( ) const
inline

获取群组公告

◆ GetBeInviteMode()

NIMTeamBeInviteMode nim::TeamInfo::GetBeInviteMode ( ) const
inline

获得被邀请人同意方式

◆ GetCreateTimetag()

int64_t nim::TeamInfo::GetCreateTimetag ( ) const
inline

获取群组创建时间戳(毫秒)

◆ GetCustom()

std::string nim::TeamInfo::GetCustom ( ) const
inline

获取群组客户端扩展内容

◆ GetIcon()

std::string nim::TeamInfo::GetIcon ( ) const
inline

获取群头像

◆ GetIntro()

std::string nim::TeamInfo::GetIntro ( ) const
inline

获取群组简介

◆ GetInviteMode()

NIMTeamInviteMode nim::TeamInfo::GetInviteMode ( ) const
inline

获取谁可以邀请他人入群

◆ GetJoinMode()

nim::NIMTeamJoinMode nim::TeamInfo::GetJoinMode ( ) const
inline

获取群组验证模式

◆ GetLevel()

int nim::TeamInfo::GetLevel ( ) const
inlineprivate

获取群组等级

◆ GetMemberCount()

int nim::TeamInfo::GetMemberCount ( ) const
inline

获取群组成员数量

◆ GetMemberListTimetag()

int64_t nim::TeamInfo::GetMemberListTimetag ( ) const
inline

获取群组成员档案时间戳(毫秒),通常情况下由SDK维护,开发者作为只读无需设置

◆ GetMemberMaxCount()

int nim::TeamInfo::GetMemberMaxCount ( ) const
inline

获取群的最大成员数

◆ GetMuteType()

NIMTeamMuteType nim::TeamInfo::GetMuteType ( ) const
inline

获取群禁言状态

◆ GetName()

std::string nim::TeamInfo::GetName ( ) const
inline

获取群组名字

◆ GetOwnerID()

std::string nim::TeamInfo::GetOwnerID ( ) const
inline

获取群组拥有者ID

◆ GetProperty()

std::string nim::TeamInfo::GetProperty ( ) const
inline

获取群组属性

◆ GetServerCustom()

std::string nim::TeamInfo::GetServerCustom ( ) const
inline

获取群组服务器端扩展内容

◆ GetTeamID()

std::string nim::TeamInfo::GetTeamID ( ) const
inline

获取群组ID

◆ GetType()

nim::NIMTeamType nim::TeamInfo::GetType ( ) const
inline

获取群组类型

◆ GetUpdateCustomMode()

NIMTeamUpdateCustomMode nim::TeamInfo::GetUpdateCustomMode ( ) const
inline

获取谁可以修改群资料属性

◆ GetUpdateInfoMode()

NIMTeamUpdateInfoMode nim::TeamInfo::GetUpdateInfoMode ( ) const
inline

获取谁可以修改群资料

◆ GetUpdateTimetag()

int64_t nim::TeamInfo::GetUpdateTimetag ( ) const
inline

获取群组更新时间戳(毫秒)

◆ IsMemberValid()

bool nim::TeamInfo::IsMemberValid ( ) const
inline

获取群组成员有效性

◆ IsValid()

bool nim::TeamInfo::IsValid ( ) const
inline

获取群组有效性

◆ operator=()

void nim::TeamInfo::operator= ( const TeamInfo new_info)
inline

重载=

◆ SetAnnouncement()

void nim::TeamInfo::SetAnnouncement ( const std::string &  announcement)
inline

设置群组公告

◆ SetBeInviteMode()

void nim::TeamInfo::SetBeInviteMode ( NIMTeamBeInviteMode  mode)
inline

设置被邀请人同意方式

◆ SetCreateTimetag()

void nim::TeamInfo::SetCreateTimetag ( int64_t  timetag)
inline

设置群组创建时间戳(毫秒),通常情况下由SDK维护,开发者作为只读无需设置

◆ SetCustom()

void nim::TeamInfo::SetCustom ( const std::string &  custom)
inline

群属性,开发者无需关注 20161011 by Oleg 获取群属性,开发者无需关注 20161011 by Oleg 设置群组客户端扩展内容

◆ SetIcon()

void nim::TeamInfo::SetIcon ( const std::string &  icon)
inline

设置群头像

◆ SetIntro()

void nim::TeamInfo::SetIntro ( const std::string &  intro)
inline

设置群组简介

◆ SetInviteMode()

void nim::TeamInfo::SetInviteMode ( NIMTeamInviteMode  mode)
inline

设置谁可以邀请他人入群

◆ SetJoinMode()

void nim::TeamInfo::SetJoinMode ( nim::NIMTeamJoinMode  mode)
inline

设置群组验证模式

◆ SetLevel()

void nim::TeamInfo::SetLevel ( int  level)
inlineprivate

设置群组等级,通常情况下由SDK维护,开发者作为只读无需设置

◆ SetMemberCount()

void nim::TeamInfo::SetMemberCount ( int  count)
inline

设置群组成员数量,通常情况下由SDK维护,开发者作为只读无需设置

◆ SetMemberListTimetag()

void nim::TeamInfo::SetMemberListTimetag ( int64_t  timetag)
inline

设置群组成员档案时间戳(毫秒),通常情况下由SDK维护,开发者作为只读无需设置

◆ SetMemberMaxCount()

void nim::TeamInfo::SetMemberMaxCount ( int  count)
inline

在创建群时,设置群的最大成员数,不可超过应用设定的最大成员数,否则返回414

◆ SetMemberValid()

void nim::TeamInfo::SetMemberValid ( bool  valid)
inline

设置群组成员有效性,通常情况下由SDK维护,开发者作为只读无需设置

◆ SetMute()

void nim::TeamInfo::SetMute ( NIMTeamMuteType  mute_type)
inline

设置全员禁言(除管理员)

◆ SetName()

void nim::TeamInfo::SetName ( const std::string &  name)
inline

设置群组名字

◆ SetOwnerID()

void nim::TeamInfo::SetOwnerID ( const std::string &  id)
inline

设置群组拥有者ID,通常情况下由SDK维护,开发者作为只读无需设置

◆ SetProperty()

void nim::TeamInfo::SetProperty ( const std::string &  prop)
inline

设置群组属性

◆ SetServerCustom()

void nim::TeamInfo::SetServerCustom ( const std::string &  custom)
inline

设置群组服务器端扩展内容

◆ SetTeamID()

void nim::TeamInfo::SetTeamID ( const std::string &  id)
inline

设置群组ID,通常情况下由SDK维护,开发者作为只读无需设置

◆ SetType()

void nim::TeamInfo::SetType ( nim::NIMTeamType  type)
inline

设置群组类型

◆ SetUpdateCustomMode()

void nim::TeamInfo::SetUpdateCustomMode ( NIMTeamUpdateCustomMode  mode)
inline

设置谁可以修改群资料属性

◆ SetUpdateInfoMode()

void nim::TeamInfo::SetUpdateInfoMode ( NIMTeamUpdateInfoMode  mode)
inline

设置谁可以修改群资料

◆ SetUpdateTimetag()

void nim::TeamInfo::SetUpdateTimetag ( int64_t  timetag)
inline

设置群组更新时间戳(毫秒),通常情况下由SDK维护,开发者作为只读无需设置

◆ SetValid()

void nim::TeamInfo::SetValid ( bool  valid)
inline

设置群组有效性,通常情况下由SDK维护,开发者作为只读无需设置

◆ ToJsonString()

std::string nim::TeamInfo::ToJsonString ( ) const
inline

组装Json Value字符串

返回
string Json Value字符串

◆ ToJsonValue()

nim_cpp_wrapper_util::Json::Value nim::TeamInfo::ToJsonValue ( ) const
inline

获取JsonValue格式的数据

返回
nim_cpp_wrapper_util::Json::Value

◆ TypeIsValid()

bool nim::TeamInfo::TypeIsValid ( ) const
inline

判断是否设置了群组类型,在创建群组时用以判断上层构造的 TeamInfo 是否设置了群组类型

◆ Update()

void nim::TeamInfo::Update ( const TeamInfo new_info)
inline

更新

类成员变量说明

◆ team_info_json_value_

nim_cpp_wrapper_util::Json::Value nim::TeamInfo::team_info_json_value_

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