NIM PC Cross Platform SDK
nim_cpp_super_team.h
Go to the documentation of this file.
1
7#ifndef _NIM_SDK_CPP_SUPERTEAM_H_
8#define _NIM_SDK_CPP_SUPERTEAM_H_
9
10#include <functional>
11#include <list>
12#include <string>
20namespace nim {
21
25class NIM_SDK_CPPWRAPPER_DLL_API SuperTeam {
26public:
28 typedef std::function<void(const SuperTeamEvent& team_event)> SuperTeamEventCallback;
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)>
42 typedef std::function<void(const SuperTeamMemberProperty& team_member_property)> QuerySuperTeamMemberCallback;
44 typedef std::function<void(const std::string& tid, const SuperTeamInfo& result)> QuerySuperTeamInfoCallback;
45 typedef std::function<void(NIMResCode error_code, const std::string& tid, const std::list<SuperTeamMemberProperty>& team_member_propertys)>
48
55 static void RegSuperTeamEventCb(const SuperTeamEventCallback& cb, const std::string& json_extension = "");
56
76 static bool InviteAsync(const std::string& tid,
77 const std::list<std::string>& ids,
78 const SuperTeamEventCallback& cb,
79 const std::string& json_extension = "");
80
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,
106 const SuperTeamEventCallback& cb,
107 const std::string& json_extension = "");
108
126 static bool KickAsync(const std::string& tid,
127 const std::list<std::string>& ids,
128 const SuperTeamEventCallback& cb,
129 const std::string& json_extension = "");
130
143 static bool LeaveAsync(const std::string& tid, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
144
161 static bool UpdateSuperTeamInfoAsync(const std::string& tid,
162 const SuperTeamInfo& team_info,
163 const SuperTeamEventCallback& cb,
164 const std::string& json_extension = "");
165
181 static bool UpdateMyPropertyAsync(const SuperTeamMemberProperty& prop, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
182
201 static bool ApplyJoinAsync(const std::string& tid,
202 const std::string& reason,
203 const SuperTeamEventCallback& cb,
204 const std::string& json_extension = "");
205
222 static bool PassJoinApplyAsync(const std::string& tid,
223 const std::string& applicant_id,
224 const SuperTeamEventCallback& cb,
225 const std::string& json_extension = "");
226
244 static bool RejectJoinApplyAsync(const std::string& tid,
245 const std::string& applicant_id,
246 const std::string& reason,
247 const SuperTeamEventCallback& cb,
248 const std::string& json_extension = "");
249
265 static bool AddManagersAsync(const std::string& tid,
266 const std::list<std::string>& ids,
267 const SuperTeamEventCallback& cb,
268 const std::string& json_extension = "");
269
284 static bool RemoveManagersAsync(const std::string& tid,
285 const std::list<std::string>& ids,
286 const SuperTeamEventCallback& cb,
287 const std::string& json_extension = "");
288
306 static bool TransferTeamAsync(const std::string& tid,
307 const std::string& new_owner_id,
308 bool is_leave,
309 const SuperTeamEventCallback& cb,
310 const std::string& json_extension = "");
311
323 static bool UpdateOtherNickAsync(const SuperTeamMemberProperty& prop, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
324
340 static bool AcceptInvitationAsync(const std::string& tid,
341 const std::string& invitor_id,
342 const SuperTeamEventCallback& cb,
343 const std::string& json_extension = "");
344
362 static bool RejectInvitationAsync(const std::string& tid,
363 const std::string& invitor_id,
364 const std::string& reason,
365 const SuperTeamEventCallback& cb,
366 const std::string& json_extension = "");
367
386 static bool MuteMemberAsync(const std::string& tid,
387 const std::string& member_id,
388 bool set_mute,
389 const SuperTeamEventCallback& cb,
390 const std::string& json_extension = "");
391
402 static bool QueryMuteListAsync(const std::string& tid, const QuerySuperTeamMembersCallback& cb, const std::string& json_extension = "");
403
414 static bool MuteAsync(const std::string& tid, bool set_mute, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
415
422 static void QueryAllMySuperTeamsAsync(const QueryAllMySuperTeamsCallback& cb, const std::string& json_extension = "");
423
430 static void QueryAllMySuperTeamsInfoAsync(const QueryAllMySuperTeamsInfoCallback& cb, const std::string& json_extension = "");
431
441 static bool QuerySuperTeamsInfoByKeywordAsync(const std::string& keyword,
443 const std::string& json_extension = "");
444
451 static void QueryMyAllMemberInfosAsync(const QueryMyAllMemberInfosCallback& cb, const std::string& json_extension = "");
452
466 static bool QuerySuperTeamMembersAsync(const std::string& tid, const QuerySuperTeamMembersCallback& cb, const std::string& json_extension = "");
467
479 static bool QuerySuperTeamMemberAsync(const std::string& tid,
480 const std::string& id,
482 const std::string& json_extension = "");
483
490 static SuperTeamMemberProperty QuerySuperTeamMemberBlock(const std::string& tid, const std::string& id);
491
499 static bool QuerySuperTeamInfoAsync(const std::string& tid, const QuerySuperTeamInfoCallback& cb, const std::string& json_extension = "");
500
506 static SuperTeamInfo QuerySuperTeamInfoBlock(const std::string& tid);
507
521 static bool QuerySuperTeamInfoOnlineAsync(const std::string& tid, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
522
529 static bool ParseSuperTeamInfo(const std::string& json_team_info, SuperTeamInfo& team_info);
530
535 static void UnregSuperTeamCb();
536};
537
538} // namespace nim
539
540#endif //_NIM_SDK_CPP_SUPERTEAM_H_
超大群组功能;主要包括查询群信息、查询群成员信息、加人、踢人等功能
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
namespace nim
NIMResCode
Definition: nim_chatroom_res_code_def.h:15
定义导出宏
SuperSuperTeam 辅助方法和数据结构定义
Talk 辅助方法和数据结构定义
群组事件通知
Definition: nim_super_team_helper.h:358
群组信息
Definition: nim_super_team_helper.h:23
群组成员信息
Definition: nim_super_team_helper.h:261