NIMSDK-AOS  10.6.0
TeamService.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.team;
2 
3 import com.netease.nimlib.apt.annotation.NIMService;
18 import java.io.Serializable;
19 import java.util.List;
20 import java.util.Map;
21 import java.util.Set;
22 
27 @NIMService("群服务")
28 public interface TeamService {
29 
39  InvocationFuture<CreateTeamResult> createTeam(Map<TeamFieldEnum, Serializable> fields, TeamTypeEnum type,
40  String postscript, List<String> members);
41 
52  InvocationFuture<CreateTeamResult> createTeam(Map<TeamFieldEnum, Serializable> fields, TeamTypeEnum type,
53  String postscript, List<String> members, AntiSpamConfig antiSpamConfig);
54 
62  InvocationFuture<List<String>> addMembers(String teamId, List<String> accounts);
63 
64 
74  InvocationFuture<List<String>> addMembersEx(String teamId, List<String> accounts, String msg, String customInfo);
75 
83  InvocationFuture<Void> removeMember(String teamId, String member);
84 
92  InvocationFuture<Void> removeMembers(String teamId, List<String> members);
93 
102  InvocationFuture<Void> updateName(String teamId, String name);
103 
113  InvocationFuture<Void> updateTeam(String teamId, TeamFieldEnum field, Serializable value);
114 
122  InvocationFuture<Void> updateTeamFields(String teamId, Map<TeamFieldEnum, Serializable> fields);
123 
132  InvocationFuture<Void> updateTeamFields(String teamId, Map<TeamFieldEnum, Serializable> fields,AntiSpamConfig antiSpamConfig);
133 
140  InvocationFuture<Void> dismissTeam(String teamId);
141 
148  InvocationFuture<Void> quitTeam(String teamId);
149 
157  InvocationFuture<Team> queryTeam(String teamId);
158 
166  Team queryTeamBlock(String teamId);
167 
173  InvocationFuture<List<Team>> queryTeamList();
174 
180  public List<Team> queryTeamListBlock();
181 
188  InvocationFuture<List<Team>> queryTeamListById(List<String> tidList);
189 
196  public List<Team> queryTeamListByIdBlock(List<String> tidList);
197 
204  InvocationFuture<List<Team>> queryTeamListByType(TeamTypeEnum type);
205 
212  public List<Team> queryTeamListByTypeBlock(TeamTypeEnum type);
213 
219  public int queryTeamCountBlock();
220 
227  public int queryTeamCountByTypeBlock(TeamTypeEnum type);
228 
235  InvocationFuture<Team> searchTeam(String teamId);
236 
243  InvocationFuture<TeamInfoResult> searchTeam(List<Long> teamIdList);
244 
252  InvocationFuture<Team> applyJoinTeam(String tid, String postscript);
253 
262  InvocationFuture<Void> passApply(String teamId, String account);
263 
273  InvocationFuture<Void> rejectApply(String teamId, String account, String reason);
274 
283  InvocationFuture<List<TeamMember>> addManagers(String teamId, List<String> accounts);
284 
293  InvocationFuture<List<TeamMember>> removeManagers(String teamId, List<String> managers);
294 
306  InvocationFuture<List<TeamMember>> transferTeam(String tid, String account, boolean quit);
307 
315  InvocationFuture<Void> acceptInvite(String teamId, String inviter);
316 
325  InvocationFuture<Void> declineInvite(String teamId, String inviter, String reason);
326 
334  InvocationFuture<List<TeamMember>> queryMemberList(String teamId);
335 
343  InvocationFuture<TeamMember> queryTeamMember(String teamId, String account);
344 
352  TeamMember queryTeamMemberBlock(String teamId, String account);
353 
361  List<TeamMember> queryMutedTeamMembers(String teamId);
362 
370  InvocationFuture<Void> updateMyTeamNick(String teamId, String nick);
371 
381  InvocationFuture<Void> updateMemberNick(String teamId, String account, String nick);
382 
390  InvocationFuture<Void> updateMyMemberExtension(String teamId, Map<String, Object> extension);
391 
399  InvocationFuture<Void> muteTeam(String teamId, TeamMessageNotifyTypeEnum notifyType);
400 
409  InvocationFuture<Void> muteTeamMember(String teamId, String account, boolean mute);
410 
418  InvocationFuture<Void> muteAllTeamMember(String teamId, boolean mute);
419 
426  InvocationFuture<Void> sendTeamMessageReceipt(IMMessage message);
427 
434  void refreshTeamMessageReceipt(List<IMMessage> messages);
435 
442  InvocationFuture<TeamMsgAckInfo> fetchTeamMessageReceiptDetail(IMMessage message);
443 
452  InvocationFuture<TeamMsgAckInfo> fetchTeamMessageReceiptDetail(IMMessage message, Set<String> accountSet);
453 
461  TeamMsgAckInfo queryTeamMessageReceiptDetailBlock(IMMessage message);
462 
472  TeamMsgAckInfo queryTeamMessageReceiptDetailBlock(IMMessage message, Set<String> accountSet);
473 
481  InvocationFuture<Map<String, String>> getMemberInvitor(String tid, List<String> accids);
482 
488  InvocationFuture<List<Team>> searchTeamsByKeyword(String keyword);
489 
501  InvocationFuture<List<IMMessage>> searchTeamMsgByKeyword(long tid, long fromTime, long endTime, String keyword, int limit, boolean reverse);
502 
509  InvocationFuture<List<String>> searchTeamIdByName(String name);
510 
518 
525  InvocationFuture<Void> addTeamMembersFollow(String teamId,List<String> accountIds);
526 
533  InvocationFuture<Void> removeTeamMembersFollow(String teamId,List<String> accountIds);
534 }
创建群、修改群资料时的域定义
描述群成员资料的数据结构 对于讨论组,不能设置群昵称,也没有管理员,不用关心TeamMemberType ...
Definition: TeamMember.java:12
NIM消息实体数据结构。 第三方APP不要调用设置类接口,调用之后不会被持久化
Definition: IMMessage.java:12
群已读回执信息 此类有两种状态,一种是存储已读未读用户账号列表的状态,一种是存储已读未读人数的状态 第...
云信群组信息的数据结构。
Definition: Team.java:17
群组操作相关接口 群更新的通知监测见 TeamServiceObserver