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)>
57 static void RegSuperTeamEventCb(
const SuperTeamEventCallback& cb,
const std::string& json_extension =
"");
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 =
"");
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 =
"");
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 =
"");
145 static bool LeaveAsync(
const std::string& tid,
const SuperTeamEventCallback& cb,
const std::string& json_extension =
"");
163 static bool UpdateSuperTeamInfoAsync(
const std::string& tid,
165 const SuperTeamEventCallback& cb,
166 const std::string& json_extension =
"");
183 static bool UpdateMyPropertyAsync(
const SuperTeamMemberProperty& prop,
const SuperTeamEventCallback& cb,
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,
223 const SuperTeamEventCallback& cb,
224 const std::string& json_extension =
"");
242 static bool PassJoinApplyAsync(
const std::string& tid,
243 const std::string& applicant_id,
244 const SuperTeamEventCallback& cb,
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,
267 const SuperTeamEventCallback& cb,
268 const std::string& json_extension =
"");
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 =
"");
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 =
"");
326 static bool TransferTeamAsync(
const std::string& tid,
327 const std::string& new_owner_id,
329 const SuperTeamEventCallback& cb,
330 const std::string& json_extension =
"");
343 static bool UpdateOtherNickAsync(
const SuperTeamMemberProperty& prop,
const SuperTeamEventCallback& cb,
const std::string& json_extension =
"");
360 static bool AcceptInvitationAsync(
const std::string& tid,
361 const std::string& invitor_id,
362 const SuperTeamEventCallback& cb,
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,
385 const SuperTeamEventCallback& cb,
386 const std::string& json_extension =
"");
406 static bool MuteMemberAsync(
const std::string& tid,
407 const std::string& member_id,
409 const SuperTeamEventCallback& cb,
410 const std::string& json_extension =
"");
422 static bool QueryMuteListAsync(
const std::string& tid,
const QuerySuperTeamMembersCallback& cb,
const std::string& json_extension =
"");
434 static bool MuteAsync(
const std::string& tid,
bool set_mute,
const SuperTeamEventCallback& cb,
const std::string& json_extension =
"");
442 static void QueryAllMySuperTeamsAsync(
const QueryAllMySuperTeamsCallback& cb,
const std::string& json_extension =
"");
450 static void QueryAllMySuperTeamsInfoAsync(
const QueryAllMySuperTeamsInfoCallback& cb,
const std::string& json_extension =
"");
461 static bool QuerySuperTeamsInfoByKeywordAsync(
const std::string& keyword,
462 const QueryAllMySuperTeamsInfoCallback& cb,
463 const std::string& json_extension =
"");
471 static void QueryMyAllMemberInfosAsync(
const QueryMyAllMemberInfosCallback& cb,
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,
501 const QuerySuperTeamMemberCallback& cb,
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();