NIM SDK API  9.0.0
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>
20 namespace nim {
21 
25 class NIM_SDK_CPPWRAPPER_DLL_API SuperTeam {
26 public:
27  typedef std::function<void(const SuperTeamEvent& team_event)> SuperTeamEventCallback;
28  typedef std::function<void(int team_count, const std::list<std::string>& team_id_list)>
30  typedef std::function<void(int team_count, const std::list<nim::SuperTeamInfo>& team_info_list)>
32  typedef std::function<void(int count, const std::list<nim::SuperTeamMemberProperty>& all_my_member_info_list)>
34  typedef std::function<void(NIMResCode error_code, const std::string& tid, int member_count, const std::list<SuperTeamMemberProperty>& props)>
36  typedef std::function<void(const SuperTeamMemberProperty& team_member_property)> QuerySuperTeamMemberCallback;
37  typedef std::function<void(const std::string& tid, const SuperTeamInfo& result)> QuerySuperTeamInfoCallback;
38  typedef std::function<void(NIMResCode error_code, const std::string& tid, const std::list<SuperTeamMemberProperty>& team_member_propertys)>
47  static void RegSuperTeamEventCb(const SuperTeamEventCallback& cb, const std::string& json_extension = "");
48 
68  static bool InviteAsync(const std::string& tid,
69  const std::list<std::string>& ids,
70  const SuperTeamEventCallback& cb,
71  const std::string& json_extension = "");
72 
94  static bool InviteAsync2(const std::string& tid,
95  const std::list<std::string>& ids,
96  const std::string& invitation_postscript,
97  const std::string& invitation_attachment,
98  const SuperTeamEventCallback& cb,
99  const std::string& json_extension = "");
100 
118  static bool KickAsync(const std::string& tid,
119  const std::list<std::string>& ids,
120  const SuperTeamEventCallback& cb,
121  const std::string& json_extension = "");
122 
135  static bool LeaveAsync(const std::string& tid, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
136 
153  static bool UpdateSuperTeamInfoAsync(const std::string& tid,
154  const SuperTeamInfo& team_info,
155  const SuperTeamEventCallback& cb,
156  const std::string& json_extension = "");
157 
173  static bool UpdateMyPropertyAsync(const SuperTeamMemberProperty& prop, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
174 
193  static bool ApplyJoinAsync(const std::string& tid,
194  const std::string& reason,
195  const SuperTeamEventCallback& cb,
196  const std::string& json_extension = "");
197 
214  static bool PassJoinApplyAsync(const std::string& tid,
215  const std::string& applicant_id,
216  const SuperTeamEventCallback& cb,
217  const std::string& json_extension = "");
218 
236  static bool RejectJoinApplyAsync(const std::string& tid,
237  const std::string& applicant_id,
238  const std::string& reason,
239  const SuperTeamEventCallback& cb,
240  const std::string& json_extension = "");
241 
257  static bool AddManagersAsync(const std::string& tid,
258  const std::list<std::string>& ids,
259  const SuperTeamEventCallback& cb,
260  const std::string& json_extension = "");
261 
276  static bool RemoveManagersAsync(const std::string& tid,
277  const std::list<std::string>& ids,
278  const SuperTeamEventCallback& cb,
279  const std::string& json_extension = "");
280 
298  static bool TransferTeamAsync(const std::string& tid,
299  const std::string& new_owner_id,
300  bool is_leave,
301  const SuperTeamEventCallback& cb,
302  const std::string& json_extension = "");
303 
315  static bool UpdateOtherNickAsync(const SuperTeamMemberProperty& prop, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
316 
332  static bool AcceptInvitationAsync(const std::string& tid,
333  const std::string& invitor_id,
334  const SuperTeamEventCallback& cb,
335  const std::string& json_extension = "");
336 
354  static bool RejectInvitationAsync(const std::string& tid,
355  const std::string& invitor_id,
356  const std::string& reason,
357  const SuperTeamEventCallback& cb,
358  const std::string& json_extension = "");
359 
378  static bool MuteMemberAsync(const std::string& tid,
379  const std::string& member_id,
380  bool set_mute,
381  const SuperTeamEventCallback& cb,
382  const std::string& json_extension = "");
383 
394  static bool QueryMuteListAsync(const std::string& tid, const QuerySuperTeamMembersCallback& cb, const std::string& json_extension = "");
395 
406  static bool MuteAsync(const std::string& tid, bool set_mute, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
407 
414  static void QueryAllMySuperTeamsAsync(const QueryAllMySuperTeamsCallback& cb, const std::string& json_extension = "");
415 
422  static void QueryAllMySuperTeamsInfoAsync(const QueryAllMySuperTeamsInfoCallback& cb, const std::string& json_extension = "");
423 
433  static bool QuerySuperTeamsInfoByKeywordAsync(const std::string& keyword,
435  const std::string& json_extension = "");
436 
443  static void QueryMyAllMemberInfosAsync(const QueryMyAllMemberInfosCallback& cb, const std::string& json_extension = "");
444 
458  static bool QuerySuperTeamMembersAsync(const std::string& tid, const QuerySuperTeamMembersCallback& cb, const std::string& json_extension = "");
459 
471  static bool QuerySuperTeamMemberAsync(const std::string& tid,
472  const std::string& id,
474  const std::string& json_extension = "");
475 
482  static SuperTeamMemberProperty QuerySuperTeamMemberBlock(const std::string& tid, const std::string& id);
483 
491  static bool QuerySuperTeamInfoAsync(const std::string& tid, const QuerySuperTeamInfoCallback& cb, const std::string& json_extension = "");
492 
498  static SuperTeamInfo QuerySuperTeamInfoBlock(const std::string& tid);
499 
513  static bool QuerySuperTeamInfoOnlineAsync(const std::string& tid, const SuperTeamEventCallback& cb, const std::string& json_extension = "");
514 
521  static bool ParseSuperTeamInfo(const std::string& json_team_info, SuperTeamInfo& team_info);
522 
527  static void UnregSuperTeamCb();
528 };
529 
530 } // namespace nim
531 
532 #endif //_NIM_SDK_CPP_SUPERTEAM_H_
nim::SuperTeam::QuerySuperTeamMembersCallback
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:35
nim::SuperTeam
超大群组功能;主要包括查询群信息、查询群成员信息、加人、踢人等功能
Definition: nim_cpp_super_team.h:25
nim::SuperTeam::QueryAllMySuperTeamsInfoCallback
std::function< void(int team_count, const std::list< nim::SuperTeamInfo > &team_info_list)> QueryAllMySuperTeamsInfoCallback
Definition: nim_cpp_super_team.h:31
nim::SuperTeam::QuerySuperTeamMembersOnlineCallback
std::function< void(NIMResCode error_code, const std::string &tid, const std::list< SuperTeamMemberProperty > &team_member_propertys)> QuerySuperTeamMembersOnlineCallback
Definition: nim_cpp_super_team.h:39
nim_talk_helper.h
Talk 辅助方法和数据结构定义
nim::SuperTeamMemberProperty
群组成员信息
Definition: nim_super_team_helper.h:261
nim::SuperTeam::QuerySuperTeamMemberCallback
std::function< void(const SuperTeamMemberProperty &team_member_property)> QuerySuperTeamMemberCallback
Definition: nim_cpp_super_team.h:36
nim
namespace nim
nim_super_team_helper.h
SuperSuperTeam 辅助方法和数据结构定义
nim::SuperTeamInfo
群组信息
Definition: nim_super_team_helper.h:23
nim::SuperTeam::SuperTeamEventCallback
std::function< void(const SuperTeamEvent &team_event)> SuperTeamEventCallback
Definition: nim_cpp_super_team.h:27
nim::SuperTeam::QueryMyAllMemberInfosCallback
std::function< void(int count, const std::list< nim::SuperTeamMemberProperty > &all_my_member_info_list)> QueryMyAllMemberInfosCallback
Definition: nim_cpp_super_team.h:33
nim::SuperTeamEvent
群组事件通知
Definition: nim_super_team_helper.h:358
nim::SuperTeam::QueryAllMySuperTeamsCallback
std::function< void(int team_count, const std::list< std::string > &team_id_list)> QueryAllMySuperTeamsCallback
Definition: nim_cpp_super_team.h:29
nim::SuperTeam::QuerySuperTeamInfoCallback
std::function< void(const std::string &tid, const SuperTeamInfo &result)> QuerySuperTeamInfoCallback
Definition: nim_cpp_super_team.h:37
nim_sdk_cpp_wrapper.h
定义导出宏