NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
v2_nim_team_service.hpp
浏览该文件的文档.
1#ifndef V2_NIM_TEAM_SERVICE_H
2#define V2_NIM_TEAM_SERVICE_H
3#include "v2_nim_internal.hpp"
4
5namespace v2 {
16public:
44 virtual void createTeam(V2NIMCreateTeamParams createTeamParams,
45 nstd::vector<nstd::string> inviteeAccountIds,
46 nstd::string postscript,
47 V2NIMAntispamConfig antispamConfig,
49 V2NIMFailureCallback failure) = 0;
50
76 virtual void updateTeamInfo(nstd::string teamId,
77 V2NIMTeamType teamType,
78 V2NIMUpdateTeamInfoParams updateTeamInfoParams,
79 V2NIMAntispamConfig antispamConfig,
81 V2NIMFailureCallback failure) = 0;
82
101 virtual void leaveTeam(nstd::string teamId, V2NIMTeamType teamType, V2NIMSuccessCallback<void> success, V2NIMFailureCallback failure) = 0;
102
122
145 V2NIMTeamType teamType,
147 V2NIMFailureCallback failure) = 0;
148
167 virtual void dismissTeam(nstd::string teamId, V2NIMTeamType teamType, V2NIMSuccessCallback<void> success, V2NIMFailureCallback failure) = 0;
168
193 virtual void inviteMember(nstd::string teamId,
194 V2NIMTeamType teamType,
195 nstd::vector<nstd::string> inviteeAccountIds,
196 nstd::string postscript,
198 V2NIMFailureCallback failure) = 0;
199
222
246 virtual void rejectInvitation(V2NIMTeamJoinActionInfo invitationInfo,
247 nstd::string postscript,
249 V2NIMFailureCallback failure) = 0;
250
273 virtual void kickMember(nstd::string teamId,
274 V2NIMTeamType teamType,
275 nstd::vector<nstd::string> memberAccountIds,
277 V2NIMFailureCallback failure) = 0;
278
299 virtual void applyJoinTeam(nstd::string teamId,
300 V2NIMTeamType teamType,
301 nstd::string postscript,
303 V2NIMFailureCallback failure) = 0;
304
327
351 virtual void rejectJoinApplication(V2NIMTeamJoinActionInfo applicationInfo,
352 nstd::string postscript,
354 V2NIMFailureCallback failure) = 0;
355
381 V2NIMTeamType teamType,
382 nstd::vector<nstd::string> memberAccountId,
383 V2NIMTeamMemberRole memberRole,
385 V2NIMFailureCallback failure) = 0;
386
409 virtual void transferTeamOwner(nstd::string teamId,
410 V2NIMTeamType teamType,
411 nstd::string accountId,
412 bool leave,
414 V2NIMFailureCallback failure) = 0;
415
439 V2NIMTeamType teamType,
440 V2NIMUpdateSelfMemberInfoParams memberInfoParams,
442 V2NIMFailureCallback failure) = 0;
443
467 V2NIMTeamType teamType,
468 nstd::string accountId,
469 nstd::string teamNick,
471 V2NIMFailureCallback failure) = 0;
472
494 V2NIMTeamType teamType,
495 V2NIMTeamChatBannedMode chatBannedMode,
497 V2NIMFailureCallback failure) = 0;
498
522 V2NIMTeamType teamType,
523 nstd::string accountId,
524 bool chatBanned,
526 V2NIMFailureCallback failure) = 0;
527
548 V2NIMFailureCallback failure) = 0;
549
561 virtual uint32_t getJoinedTeamCount(nstd::vector<V2NIMTeamType> teamTypes) = 0;
562
587 virtual void getTeamMemberList(nstd::string teamId,
588 V2NIMTeamType teamType,
589 V2NIMTeamMemberQueryOption queryOption,
591 V2NIMFailureCallback failure) = 0;
592
617 V2NIMTeamType teamType,
620 V2NIMFailureCallback failure) = 0;
621
646 V2NIMTeamType teamType,
649 V2NIMFailureCallback failure) = 0;
650
672 V2NIMFailureCallback failure) = 0;
673
691
714 V2NIMFailureCallback failure) = 0;
715
738 virtual void addTeamMembersFollow(const nstd::string& teamId,
739 V2NIMTeamType teamType,
740 const nstd::vector<nstd::string>& accountIds,
742 V2NIMFailureCallback failure) = 0;
743
766 virtual void removeTeamMembersFollow(const nstd::string& teamId,
767 V2NIMTeamType teamType,
768 const nstd::vector<nstd::string>& accountIds,
770 V2NIMFailureCallback failure) = 0;
771
786 virtual void clearAllTeamJoinActionInfo(const V2NIMSuccessCallback<void>& success, const V2NIMFailureCallback& failure) = 0;
787
807 virtual void deleteTeamJoinActionInfo(const V2NIMTeamJoinActionInfo& applicationInfo,
808 const V2NIMSuccessCallback<void>& success,
809 const V2NIMFailureCallback& failure) = 0;
810
858 virtual void addTeamListener(V2NIMTeamListener listener) = 0;
859
870 virtual void removeTeamListener(V2NIMTeamListener listener) = 0;
871};
872} // namespace v2
873#endif
Definition: ne_stl_continuous_container.h:15
Definition: ne_stl_string.h:19
Definition: ne_stl_map.h:15
通用成功
Definition: v2_nim_def_callback.hpp:7
群组服务
Definition: v2_nim_team_service.hpp:15
virtual void applyJoinTeam(nstd::string teamId, V2NIMTeamType teamType, nstd::string postscript, V2NIMSuccessCallback< V2NIMTeam > success, V2NIMFailureCallback failure)=0
申请加入群组
virtual void addTeamMembersFollow(const nstd::string &teamId, V2NIMTeamType teamType, const nstd::vector< nstd::string > &accountIds, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
添加特别关注群成员列表
virtual void createTeam(V2NIMCreateTeamParams createTeamParams, nstd::vector< nstd::string > inviteeAccountIds, nstd::string postscript, V2NIMAntispamConfig antispamConfig, V2NIMSuccessCallback< V2NIMCreateTeamResult > success, V2NIMFailureCallback failure)=0
创建群组
virtual void transferTeamOwner(nstd::string teamId, V2NIMTeamType teamType, nstd::string accountId, bool leave, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
移交群主
virtual void searchTeamByKeyword(nstd::string keyword, V2NIMSuccessCallback< nstd::vector< V2NIMTeam > > success, V2NIMFailureCallback failure)=0
根据关键字搜索群组,混合搜索高级群和超大群,使用 LIKE 方式匹配,只搜索群名称
virtual void updateTeamInfo(nstd::string teamId, V2NIMTeamType teamType, V2NIMUpdateTeamInfoParams updateTeamInfoParams, V2NIMAntispamConfig antispamConfig, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
修改群组信息
virtual void setTeamChatBannedMode(nstd::string teamId, V2NIMTeamType teamType, V2NIMTeamChatBannedMode chatBannedMode, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
设置群组禁言模式
virtual void clearAllTeamJoinActionInfo(const V2NIMSuccessCallback< void > &success, const V2NIMFailureCallback &failure)=0
virtual void acceptJoinApplication(V2NIMTeamJoinActionInfo applicationInfo, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
接受入群申请
virtual void removeTeamMembersFollow(const nstd::string &teamId, V2NIMTeamType teamType, const nstd::vector< nstd::string > &accountIds, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
移除特别关注群成员列表
virtual void rejectJoinApplication(V2NIMTeamJoinActionInfo applicationInfo, nstd::string postscript, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
拒绝入群申请
virtual void dismissTeam(nstd::string teamId, V2NIMTeamType teamType, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
解散群组
virtual void getJoinedTeamList(nstd::vector< V2NIMTeamType > teamTypes, V2NIMSuccessCallback< nstd::vector< V2NIMTeam > > success, V2NIMFailureCallback failure)=0
获取当前已经加入的群组列表
virtual void addTeamListener(V2NIMTeamListener listener)=0
添加群组监听器
virtual void kickMember(nstd::string teamId, V2NIMTeamType teamType, nstd::vector< nstd::string > memberAccountIds, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
踢出群组成员
virtual void getTeamMemberListByIds(nstd::string teamId, V2NIMTeamType teamType, nstd::vector< nstd::string > accountIds, V2NIMSuccessCallback< nstd::vector< V2NIMTeamMember > > success, V2NIMFailureCallback failure)=0
根据账号 ID 列表获取群组成员列表
virtual void inviteMember(nstd::string teamId, V2NIMTeamType teamType, nstd::vector< nstd::string > inviteeAccountIds, nstd::string postscript, V2NIMSuccessCallback< nstd::vector< nstd::string > > success, V2NIMFailureCallback failure)=0
邀请成员加入群组
virtual void leaveTeam(nstd::string teamId, V2NIMTeamType teamType, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
退出群组
virtual void removeTeamListener(V2NIMTeamListener listener)=0
移除群组监听器
virtual void getTeamInfoByIds(nstd::vector< nstd::string > teamIds, V2NIMTeamType teamType, V2NIMSuccessCallback< nstd::vector< V2NIMTeam > > success, V2NIMFailureCallback failure)=0
根据群组 ID 获取群组信息
virtual void getTeamJoinActionInfoList(V2NIMTeamJoinActionInfoQueryOption option, V2NIMSuccessCallback< V2NIMTeamJoinActionInfoResult > success, V2NIMFailureCallback failure)=0
获取群加入相关信息
virtual void updateTeamMemberRole(nstd::string teamId, V2NIMTeamType teamType, nstd::vector< nstd::string > memberAccountId, V2NIMTeamMemberRole memberRole, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
设置成员角色
virtual uint32_t getJoinedTeamCount(nstd::vector< V2NIMTeamType > teamTypes)=0
获取当前已经加入的群组数量
virtual void deleteTeamJoinActionInfo(const V2NIMTeamJoinActionInfo &applicationInfo, const V2NIMSuccessCallback< void > &success, const V2NIMFailureCallback &failure)=0
virtual void updateTeamMemberNick(nstd::string teamId, V2NIMTeamType teamType, nstd::string accountId, nstd::string teamNick, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
修改群成员昵称
virtual void acceptInvitation(V2NIMTeamJoinActionInfo invitationInfo, V2NIMSuccessCallback< V2NIMTeam > success, V2NIMFailureCallback failure)=0
同意邀请入群
virtual void updateSelfTeamMemberInfo(nstd::string teamId, V2NIMTeamType teamType, V2NIMUpdateSelfMemberInfoParams memberInfoParams, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
修改自己的群成员信息
virtual void getTeamMemberList(nstd::string teamId, V2NIMTeamType teamType, V2NIMTeamMemberQueryOption queryOption, V2NIMSuccessCallback< V2NIMTeamMemberListResult > success, V2NIMFailureCallback failure)=0
获取群组成员列表
virtual void rejectInvitation(V2NIMTeamJoinActionInfo invitationInfo, nstd::string postscript, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
拒绝邀请入群
virtual void searchTeamMembers(V2NIMTeamMemberSearchOption option, V2NIMSuccessCallback< V2NIMTeamMemberListResult > success, V2NIMFailureCallback failure)=0
根据关键字搜索群组成员
virtual void getTeamInfo(nstd::string teamId, V2NIMTeamType teamType, V2NIMSuccessCallback< V2NIMTeam > success, V2NIMFailureCallback failure)=0
获取群组信息
virtual void getTeamMemberInvitor(nstd::string teamId, V2NIMTeamType teamType, nstd::vector< nstd::string > accountIds, V2NIMSuccessCallback< nstd::map< nstd::string, nstd::string > > success, V2NIMFailureCallback failure)=0
根据账号 ID 列表获取群组成员邀请人
virtual void setTeamMemberChatBannedStatus(nstd::string teamId, V2NIMTeamType teamType, nstd::string accountId, bool chatBanned, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
设置群组成员聊天禁言状态
Definition: v2_nim_ai_service.hpp:4
V2NIMTeamMemberRole
Definition: v2_nim_def_enum.hpp:1321
V2NIMTeamChatBannedMode
Definition: v2_nim_def_enum.hpp:1305
V2NIMTeamType
Definition: v2_nim_def_enum.hpp:1266
Definition: ne_stl_bind.h:132
Definition: v2_nim_def_struct.hpp:1535
Definition: v2_nim_def_struct.hpp:1453
Definition: v2_nim_def_struct.hpp:1518
Definition: v2_nim_def_struct.hpp:1662
Definition: v2_nim_def_callback.hpp:142
Definition: v2_nim_def_struct.hpp:1482
Definition: v2_nim_def_struct.hpp:1673
Definition: v2_nim_def_struct.hpp:1502
Definition: v2_nim_def_struct.hpp:212