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)>
78 static bool InviteAsync(
const std::string& tid,
79 const std::list<std::string>& ids,
81 const std::string& json_extension =
"");
104 static bool InviteAsync2(
const std::string& tid,
105 const std::list<std::string>& ids,
106 const std::string& invitation_postscript,
107 const std::string& invitation_attachment,
109 const std::string& json_extension =
"");
128 static bool KickAsync(
const std::string& tid,
129 const std::list<std::string>& ids,
131 const std::string& json_extension =
"");
145 static bool LeaveAsync(
const std::string& tid,
const SuperTeamEventCallback& cb,
const std::string& json_extension =
"");
163 static bool UpdateSuperTeamInfoAsync(
const std::string& tid,
166 const std::string& json_extension =
"");
192 static bool AddTeamMembersFollow(
const std::string& tid,
const std::vector<std::string>& account_ids,
const SuperTeamEventCallback& cb);
201 static bool RemoveTeamMembersFollow(
const std::string& tid,
const std::vector<std::string>& account_ids,
const SuperTeamEventCallback& cb);
221 static bool ApplyJoinAsync(
const std::string& tid,
222 const std::string& reason,
224 const std::string& json_extension =
"");
242 static bool PassJoinApplyAsync(
const std::string& tid,
243 const std::string& applicant_id,
245 const std::string& json_extension =
"");
264 static bool RejectJoinApplyAsync(
const std::string& tid,
265 const std::string& applicant_id,
266 const std::string& reason,
268 const std::string& json_extension =
"");
285 static bool AddManagersAsync(
const std::string& tid,
286 const std::list<std::string>& ids,
288 const std::string& json_extension =
"");
304 static bool RemoveManagersAsync(
const std::string& tid,
305 const std::list<std::string>& ids,
307 const std::string& json_extension =
"");
326 static bool TransferTeamAsync(
const std::string& tid,
327 const std::string& new_owner_id,
330 const std::string& json_extension =
"");
360 static bool AcceptInvitationAsync(
const std::string& tid,
361 const std::string& invitor_id,
363 const std::string& json_extension =
"");
382 static bool RejectInvitationAsync(
const std::string& tid,
383 const std::string& invitor_id,
384 const std::string& reason,
386 const std::string& json_extension =
"");
406 static bool MuteMemberAsync(
const std::string& tid,
407 const std::string& member_id,
410 const std::string& json_extension =
"");
434 static bool MuteAsync(
const std::string& tid,
bool set_mute,
const SuperTeamEventCallback& cb,
const std::string& json_extension =
"");
461 static bool QuerySuperTeamsInfoByKeywordAsync(
const std::string& keyword,
463 const std::string& json_extension =
"");
486 static bool QuerySuperTeamMembersAsync(
const std::string& tid,
const QuerySuperTeamMembersCallback& cb,
const std::string& json_extension =
"");
499 static bool QuerySuperTeamMemberAsync(
const std::string& tid,
500 const std::string&
id,
502 const std::string& json_extension =
"");
536 static bool QuerySuperTeamInfoAsync(
const std::string& tid,
const QuerySuperTeamInfoCallback& cb,
const std::string& json_extension =
"");
543 static SuperTeamInfo QuerySuperTeamInfoBlock(
const std::string& tid);
558 static bool QuerySuperTeamInfoOnlineAsync(
const std::string& tid,
const SuperTeamEventCallback& cb,
const std::string& json_extension =
"");
566 static bool ParseSuperTeamInfo(
const std::string& json_team_info,
SuperTeamInfo& team_info);
572 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 SuperTeamMemberSerachResult &result)> SuperTeamMemberSearchCallback
搜索群成员回调模板
Definition: nim_cpp_super_team.h:49
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
#define NIM_SDK_CPPWRAPPER_DLL_API
Definition: nim_sdk_cpp_wrapper.h:38
SuperSuperTeam 辅助方法和数据结构定义
NIMResCode
Definition: public_defines.h:21
群组事件通知
Definition: nim_super_team_helper.h:373
群组信息
Definition: nim_super_team_helper.h:24
超大群群成员关键字搜索参数
Definition: nim_super_team_helper.h:416
群组成员信息
Definition: nim_super_team_helper.h:262
超大群群成员检索参数
Definition: nim_super_team_helper.h:430
超大群群成员搜索结果
Definition: nim_super_team_helper.h:399