NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_cpp_super_team.h
浏览该文件的文档.
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
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)>
49 typedef std::function<void(const SuperTeamMemberSerachResult& result)> SuperTeamMemberSearchCallback;
50
57 static void RegSuperTeamEventCb(const SuperTeamEventCallback& cb, const std::string& json_extension = "");
58
78 static bool InviteAsync(const std::string& tid,
79 const std::list<std::string>& ids,
80 const SuperTeamEventCallback& cb,
81 const std::string& json_extension = "");
82
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,
108 const SuperTeamEventCallback& cb,
109 const std::string& json_extension = "");
110
128 static bool KickAsync(const std::string& tid,
129 const std::list<std::string>& ids,
130 const SuperTeamEventCallback& cb,
131 const std::string& json_extension = "");
132
145 static bool LeaveAsync(const std::string& tid, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
146
163 static bool UpdateSuperTeamInfoAsync(const std::string& tid,
164 const SuperTeamInfo& team_info,
165 const SuperTeamEventCallback& cb,
166 const std::string& json_extension = "");
167
183 static bool UpdateMyPropertyAsync(const SuperTeamMemberProperty& prop, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
184
192 static bool AddTeamMembersFollow(const std::string& tid, const std::vector<std::string>& account_ids, const SuperTeamEventCallback& cb);
193
201 static bool RemoveTeamMembersFollow(const std::string& tid, const std::vector<std::string>& account_ids, const SuperTeamEventCallback& cb);
202
221 static bool ApplyJoinAsync(const std::string& tid,
222 const std::string& reason,
223 const SuperTeamEventCallback& cb,
224 const std::string& json_extension = "");
225
242 static bool PassJoinApplyAsync(const std::string& tid,
243 const std::string& applicant_id,
244 const SuperTeamEventCallback& cb,
245 const std::string& json_extension = "");
246
264 static bool RejectJoinApplyAsync(const std::string& tid,
265 const std::string& applicant_id,
266 const std::string& reason,
267 const SuperTeamEventCallback& cb,
268 const std::string& json_extension = "");
269
285 static bool AddManagersAsync(const std::string& tid,
286 const std::list<std::string>& ids,
287 const SuperTeamEventCallback& cb,
288 const std::string& json_extension = "");
289
304 static bool RemoveManagersAsync(const std::string& tid,
305 const std::list<std::string>& ids,
306 const SuperTeamEventCallback& cb,
307 const std::string& json_extension = "");
308
326 static bool TransferTeamAsync(const std::string& tid,
327 const std::string& new_owner_id,
328 bool is_leave,
329 const SuperTeamEventCallback& cb,
330 const std::string& json_extension = "");
331
343 static bool UpdateOtherNickAsync(const SuperTeamMemberProperty& prop, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
344
360 static bool AcceptInvitationAsync(const std::string& tid,
361 const std::string& invitor_id,
362 const SuperTeamEventCallback& cb,
363 const std::string& json_extension = "");
364
382 static bool RejectInvitationAsync(const std::string& tid,
383 const std::string& invitor_id,
384 const std::string& reason,
385 const SuperTeamEventCallback& cb,
386 const std::string& json_extension = "");
387
406 static bool MuteMemberAsync(const std::string& tid,
407 const std::string& member_id,
408 bool set_mute,
409 const SuperTeamEventCallback& cb,
410 const std::string& json_extension = "");
411
422 static bool QueryMuteListAsync(const std::string& tid, const QuerySuperTeamMembersCallback& cb, const std::string& json_extension = "");
423
434 static bool MuteAsync(const std::string& tid, bool set_mute, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
435
442 static void QueryAllMySuperTeamsAsync(const QueryAllMySuperTeamsCallback& cb, const std::string& json_extension = "");
443
450 static void QueryAllMySuperTeamsInfoAsync(const QueryAllMySuperTeamsInfoCallback& cb, const std::string& json_extension = "");
451
461 static bool QuerySuperTeamsInfoByKeywordAsync(const std::string& keyword,
463 const std::string& json_extension = "");
464
471 static void QueryMyAllMemberInfosAsync(const QueryMyAllMemberInfosCallback& cb, const std::string& json_extension = "");
472
486 static bool QuerySuperTeamMembersAsync(const std::string& tid, const QuerySuperTeamMembersCallback& cb, const std::string& json_extension = "");
487
499 static bool QuerySuperTeamMemberAsync(const std::string& tid,
500 const std::string& id,
502 const std::string& json_extension = "");
503
510 static bool SearchTeamMembers(const SuperTeamMemberKeywordSearchOption& option, const SuperTeamMemberSearchCallback& cb);
511
519 static bool GetTeamMemberList(const std::string& tid, const SuperTeamMemberRoleTypeSearchOption& option, const SuperTeamMemberSearchCallback& cb);
520
527 static SuperTeamMemberProperty QuerySuperTeamMemberBlock(const std::string& tid, const std::string& id);
528
536 static bool QuerySuperTeamInfoAsync(const std::string& tid, const QuerySuperTeamInfoCallback& cb, const std::string& json_extension = "");
537
543 static SuperTeamInfo QuerySuperTeamInfoBlock(const std::string& tid);
544
558 static bool QuerySuperTeamInfoOnlineAsync(const std::string& tid, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
559
566 static bool ParseSuperTeamInfo(const std::string& json_team_info, SuperTeamInfo& team_info);
567
572 static void UnregSuperTeamCb();
573};
574
575} // namespace nim
576
577#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 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
namespace nim
定义导出宏
#define NIM_SDK_CPPWRAPPER_DLL_API
Definition: nim_sdk_cpp_wrapper.h:38
SuperSuperTeam 辅助方法和数据结构定义
Talk 辅助方法和数据结构定义
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