32 typedef std::function<void(
int team_count,
const std::list<nim::TeamInfo>& team_info_list)>
35 typedef std::function<void(
int count,
const std::list<nim::TeamMemberProperty>& all_my_member_info_list)>
38 typedef std::function<void(
const std::string& tid,
int member_count,
const std::list<TeamMemberProperty>& props)>
45 typedef std::function<void(
NIMResCode error_code,
const std::string& tid,
const std::list<TeamMemberProperty>& team_member_propertys)>
48 typedef std::function<void(
NIMResCode,
const std::string&,
const std::map<std::string, std::string>&)>
54 typedef std::function<void(
const std::list<std::string>& success_ids,
const std::list<std::string>& failure_ids)>
57 typedef std::function<void(
const std::string& tid,
58 const std::list<std::string>& success_ids,
59 const std::list<std::string>& failure_ids,
60 const std::list<std::string>& ignored_ids)>
62 typedef std::function<void(
NIMResCode error_code,
const std::list<nim::TeamInfo>& team_info_list,
const std::list<std::string>& fail_list)>
73 static void RegTeamEventCb(
const TeamEventCallback& cb,
const std::string& json_extension =
"");
95 static
bool CreateTeamAsync(const
TeamInfo& team_info,
96 const
std::list<
std::
string>& ids,
97 const
std::
string& invitation_postscript,
98 const TeamEventCallback& cb,
99 const
std::
string& json_extension = "");
119 static
bool CreateTeamAsyncEx(const
TeamInfo& team_info,
120 const
std::list<
std::
string>& ids,
121 const
std::
string& invitation_postscript,
122 const TeamEventCallback& callback,
123 const
std::
string& json_extension = "");
144 static
bool InviteAsync(const
std::
string& tid,
145 const
std::list<
std::
string>& ids,
146 const
std::
string& invitation_postscript,
147 const TeamEventCallback& cb,
148 const
std::
string& json_extension = "");
171 static
bool InviteAsync2(const
std::
string& tid,
172 const
std::list<
std::
string>& ids,
173 const
std::
string& invitation_postscript,
174 const
std::
string& invitation_attachment,
175 const TeamEventCallback& cb,
176 const
std::
string& json_extension = "");
195 static
bool KickAsync(const
std::
string& tid,
196 const
std::list<
std::
string>& ids,
197 const TeamEventCallback& cb,
198 const
std::
string& json_extension = "");
210 static
bool LeaveAsync(const
std::
string& tid, const TeamEventCallback& cb, const
std::
string& json_extension = "");
222 static
bool DismissAsync(const
std::
string& tid, const TeamEventCallback& cb, const
std::
string& json_extension = "");
238 static
bool UpdateTeamInfoAsync(const
std::
string& tid,
240 const TeamEventCallback& cb,
241 const
std::
string& json_extension = "");
261 static
bool ApplyJoinAsync(const
std::
string& tid,
262 const
std::
string& reason,
263 const TeamEventCallback& cb,
264 const
std::
string& json_extension = "");
284 static
bool PassJoinApplyAsync(const
std::
string& tid,
285 const
std::
string& applicant_id,
286 const TeamEventCallback& cb,
287 const
std::
string& json_extension = "");
307 static
bool RejectJoinApplyAsync(const
std::
string& tid,
308 const
std::
string& applicant_id,
309 const
std::
string& reason,
310 const TeamEventCallback& cb,
311 const
std::
string& json_extension = "");
328 static
bool AddManagersAsync(const
std::
string& tid,
329 const
std::list<
std::
string>& ids,
330 const TeamEventCallback& cb,
331 const
std::
string& json_extension = "");
348 static
bool RemoveManagersAsync(const
std::
string& tid,
349 const
std::list<
std::
string>& ids,
350 const TeamEventCallback& cb,
351 const
std::
string& json_extension = "");
371 static
bool TransferTeamAsync(const
std::
string& tid,
372 const
std::
string& new_owner_id,
374 const TeamEventCallback& cb,
375 const
std::
string& json_extension = "");
388 static
bool UpdateMyPropertyAsync(const
TeamMemberProperty& prop, const TeamEventCallback& cb, const
std::
string& json_extension = "");
397 static
bool AddTeamMembersFollow(const
std::
string& tid, const
std::vector<
std::
string>& account_ids, const TeamEventCallback& cb);
406 static
bool RemoveTeamMembersFollow(const
std::
string& tid, const
std::vector<
std::
string>& account_ids, const TeamEventCallback& cb);
420 static
bool UpdateOtherNickAsync(const
TeamMemberProperty& prop, const TeamEventCallback& cb, const
std::
string& json_extension = "");
437 static
bool AcceptInvitationAsync(const
std::
string& tid,
438 const
std::
string& invitor_id,
439 const TeamEventCallback& cb,
440 const
std::
string& json_extension = "");
459 static
bool RejectInvitationAsync(const
std::
string& tid,
460 const
std::
string& invitor_id,
461 const
std::
string& reason,
462 const TeamEventCallback& cb,
463 const
std::
string& json_extension = "");
471 static
void QueryAllMyTeamsAsync(const QueryAllMyTeamsCallback& cb, const
std::
string& json_extension = "");
479 static
void QueryAllMyTeamsInfoAsync(const QueryAllMyTeamsInfoCallback& cb, const
std::
string& json_extension = "");
487 static
void QueryMyAllMemberInfosAsync(const QueryMyAllMemberInfosCallback& cb, const
std::
string& json_extension = "");
499 static
bool QueryTeamMembersAsync(const
std::
string& tid, const QueryTeamMembersCallback& cb, const
std::
string& json_extension = "");
512 static
bool QueryTeamMemberAsync(const
std::
string& tid,
513 const
std::
string&
id,
514 const QueryTeamMemberCallback& cb,
515 const
std::
string& json_extension = "");
541 static
bool QueryTeamInfoAsync(const
std::
string& tid, const QueryTeamInfoCallback& cb, const
std::
string& json_extension = "");
548 static
TeamInfo QueryTeamInfoBlock(const
std::
string& tid);
559 static
bool QueryTeamInfoOnlineAsync(const
std::
string& tid, const TeamEventCallback& cb, const
std::
string& json_extension = "");
567 static
bool ParseTeamInfo(const
std::
string& json_team_info,
TeamInfo& team_info);
573 static
void UnregTeamCb();
593 static
bool MuteMemberAsync(const
std::
string& tid,
594 const
std::
string& member_id,
596 const TeamEventCallback& cb,
597 const
std::
string& json_extension = "");
609 static
bool QueryMuteListOnlineAsync(const
std::
string& tid, const QueryTeamMembersOnlineCallback& cb, const
std::
string& json_extension = "");
621 static
bool MuteAsync(const
std::
string& tid,
bool set_mute, const TeamEventCallback& cb, const
std::
string& json_extension = "");
636 static
void TeamMsgAckRead(const
std::
string& tid,
638 const TeamEventCallback& cb,
639 const
std::
string& json_extension = "");
654 static
void TeamMsgAckReadEx(const
std::
string& tid,
656 const TeamMsgAckReadCallback& cb,
657 const
std::
string& json_extension = "");
672 static
void TeamMsgQueryUnreadList(const
std::
string& tid,
674 const TeamEventCallback& cb,
675 const
std::
string& json_extension = "");
692 static
void TeamMsgQueryUnreadList(const
std::
string& tid,
694 const
std::list<
std::
string>& accids,
695 const TeamEventCallback& cb,
696 const
std::
string& json_extension = "");
706 static
void QueryTeamMembersInvitor(const
std::
string& tid, const
std::list<
std::
string>& members, const QueryTeamMembersInvitorCallback& cb);
717 static
bool QueryTeamInfoByKeywordAsync(const
std::
string& keyword, const
QueryTeamsInfoCallback& cb, const
std::
string& json_extension = "");
731 static
void UpdateTInfoLocal(const
std::list<
TeamInfo>& team_infos, const UpdateTInfoLocalCallback& cb, const
std::
string& json_extension = "");
753 static
void GetTeaminfoList(const
std::list<
std::
string>& tid_list, const GetTeamInfoListCallback& cb);