7#ifndef _NIM_SDK_CPP_SUPERTEAM_H_
8#define _NIM_SDK_CPP_SUPERTEAM_H_
29 typedef std::function<void(
int team_count,
const std::list<std::string>& team_id_list)>
32 typedef std::function<void(
int team_count,
const std::list<nim::SuperTeamInfo>& team_info_list)>
35 typedef std::function<void(
int count,
const std::list<nim::SuperTeamMemberProperty>& all_my_member_info_list)>
38 typedef std::function<void(
NIMResCode error_code,
const std::string& tid,
int member_count,
const std::list<SuperTeamMemberProperty>& props)>
45 typedef std::function<void(
NIMResCode error_code,
const std::string& tid,
const std::list<SuperTeamMemberProperty>& team_member_propertys)>
76 static bool InviteAsync(
const std::string& tid,
77 const std::list<std::string>& ids,
79 const std::string& json_extension =
"");
102 static bool InviteAsync2(
const std::string& tid,
103 const std::list<std::string>& ids,
104 const std::string& invitation_postscript,
105 const std::string& invitation_attachment,
107 const std::string& json_extension =
"");
126 static bool KickAsync(
const std::string& tid,
127 const std::list<std::string>& ids,
129 const std::string& json_extension =
"");
143 static bool LeaveAsync(
const std::string& tid,
const SuperTeamEventCallback& cb,
const std::string& json_extension =
"");
161 static bool UpdateSuperTeamInfoAsync(
const std::string& tid,
164 const std::string& json_extension =
"");
201 static bool ApplyJoinAsync(
const std::string& tid,
202 const std::string& reason,
204 const std::string& json_extension =
"");
222 static bool PassJoinApplyAsync(
const std::string& tid,
223 const std::string& applicant_id,
225 const std::string& json_extension =
"");
244 static bool RejectJoinApplyAsync(
const std::string& tid,
245 const std::string& applicant_id,
246 const std::string& reason,
248 const std::string& json_extension =
"");
265 static bool AddManagersAsync(
const std::string& tid,
266 const std::list<std::string>& ids,
268 const std::string& json_extension =
"");
284 static bool RemoveManagersAsync(
const std::string& tid,
285 const std::list<std::string>& ids,
287 const std::string& json_extension =
"");
306 static bool TransferTeamAsync(
const std::string& tid,
307 const std::string& new_owner_id,
310 const std::string& json_extension =
"");
340 static bool AcceptInvitationAsync(
const std::string& tid,
341 const std::string& invitor_id,
343 const std::string& json_extension =
"");
362 static bool RejectInvitationAsync(
const std::string& tid,
363 const std::string& invitor_id,
364 const std::string& reason,
366 const std::string& json_extension =
"");
386 static bool MuteMemberAsync(
const std::string& tid,
387 const std::string& member_id,
390 const std::string& json_extension =
"");
414 static bool MuteAsync(
const std::string& tid,
bool set_mute,
const SuperTeamEventCallback& cb,
const std::string& json_extension =
"");
441 static bool QuerySuperTeamsInfoByKeywordAsync(
const std::string& keyword,
443 const std::string& json_extension =
"");
466 static bool QuerySuperTeamMembersAsync(
const std::string& tid,
const QuerySuperTeamMembersCallback& cb,
const std::string& json_extension =
"");
479 static bool QuerySuperTeamMemberAsync(
const std::string& tid,
480 const std::string&
id,
482 const std::string& json_extension =
"");
499 static bool QuerySuperTeamInfoAsync(
const std::string& tid,
const QuerySuperTeamInfoCallback& cb,
const std::string& json_extension =
"");
506 static SuperTeamInfo QuerySuperTeamInfoBlock(
const std::string& tid);
521 static bool QuerySuperTeamInfoOnlineAsync(
const std::string& tid,
const SuperTeamEventCallback& cb,
const std::string& json_extension =
"");
529 static bool ParseSuperTeamInfo(
const std::string& json_team_info,
SuperTeamInfo& team_info);
535 static void UnregSuperTeamCb();
超大群组功能;主要包括查询群信息、查询群成员信息、加人、踢人等功能
Definition: nim_cpp_super_team.h:25
std::function< void(const SuperTeamMemberProperty &team_member_property)> QuerySuperTeamMemberCallback
查询指定群成员信息回调模板
Definition: nim_cpp_super_team.h:42
std::function< void(int team_count, const std::list< std::string > &team_id_list)> QueryAllMySuperTeamsCallback
查询本人所有群ID回调模板
Definition: nim_cpp_super_team.h:31
std::function< void(NIMResCode error_code, const std::string &tid, int member_count, const std::list< SuperTeamMemberProperty > &props)> QuerySuperTeamMembersCallback
查询指定群组全部成员信息回调模板
Definition: nim_cpp_super_team.h:40
std::function< void(const SuperTeamEvent &team_event)> SuperTeamEventCallback
群组事件通知回调模板
Definition: nim_cpp_super_team.h:28
std::function< void(NIMResCode error_code, const std::string &tid, const std::list< SuperTeamMemberProperty > &team_member_propertys)> QuerySuperTeamMembersOnlineCallback
查询群成员信息回调模板
Definition: nim_cpp_super_team.h:47
std::function< void(int count, const std::list< nim::SuperTeamMemberProperty > &all_my_member_info_list)> QueryMyAllMemberInfosCallback
查询本人所有群里我的成员信息回调模板
Definition: nim_cpp_super_team.h:37
std::function< void(const std::string &tid, const SuperTeamInfo &result)> QuerySuperTeamInfoCallback
查询指定群信息回调模板
Definition: nim_cpp_super_team.h:44
std::function< void(int team_count, const std::list< nim::SuperTeamInfo > &team_info_list)> QueryAllMySuperTeamsInfoCallback
查询本人所有群信息回调模板
Definition: nim_cpp_super_team.h:34
NIMResCode
Definition: nim_chatroom_res_code_def.h:15
SuperSuperTeam 辅助方法和数据结构定义
群组事件通知
Definition: nim_super_team_helper.h:358
群组信息
Definition: nim_super_team_helper.h:23
群组成员信息
Definition: nim_super_team_helper.h:261