NIMSDK-AOS  10.6.0
SuperTeamService.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.superteam;
2 
3 import com.netease.nimlib.apt.annotation.NIMService;
16 import java.io.Serializable;
17 import java.util.ArrayList;
18 import java.util.List;
19 import java.util.Map;
20 
24 @NIMService("超大群服务")
25 public interface SuperTeamService {
26 
35  InvocationFuture<Void> sendMessage(IMMessage msg, boolean resend);
36 
46  InvocationFuture<Void> replyMessage(IMMessage msg, IMMessage replyMsg, boolean resend);
47 
56  InvocationFuture<List<String>> addMembers(String teamId, List<String> accounts, String postscript);
57 
65  InvocationFuture<Void> removeMember(String teamId, String member);
66 
74  InvocationFuture<Void> removeMembers(String teamId, List<String> members);
75 
82  InvocationFuture<Void> quitTeam(String teamId);
83 
88  InvocationFuture<List<SessionAckInfo>> clearUnreadCount(List<String> teamIdList);
89 
90 
100  InvocationFuture<Void> updateTeam(String teamId, TeamFieldEnum field, Serializable value);
101 
109  InvocationFuture<Void> updateTeamFields(String teamId, Map<TeamFieldEnum, Serializable> fields);
110 
119  InvocationFuture<Void> updateTeamFields(String teamId, Map<TeamFieldEnum, Serializable> fields,
120  AntiSpamConfig antiSpamConfig);
121 
127  InvocationFuture<List<SuperTeam>> queryTeamList();
128 
134  List<SuperTeam> queryTeamListBlock();
135 
142  InvocationFuture<List<SuperTeam>> queryTeamListById(List<String> tidList);
143 
150  List<SuperTeam> queryTeamListByIdBlock(List<String> tidList);
151 
159  InvocationFuture<SuperTeam> queryTeam(String teamId);
160 
168  SuperTeam queryTeamBlock(String teamId);
169 
176  InvocationFuture<SuperTeam> searchTeam(String teamId);
177 
185  InvocationFuture<List<SuperTeamMember>> queryMemberList(String teamId);
186 
187 
197  InvocationFuture<List<SuperTeamMember>> queryMemberListByPage(String teamId, int offset, int limit);
198 
206  InvocationFuture<SuperTeamMember> queryTeamMember(String teamId, String account);
207 
215  SuperTeamMember queryTeamMemberBlock(String teamId, String account);
216 
224  List<SuperTeamMember> queryMutedTeamMembers(String teamId);
225 
233  InvocationFuture<Void> updateMyTeamNick(String teamId, String nick);
234 
235 
243  InvocationFuture<Void> updateMyMemberExtension(String teamId, String extension);
244 
252  InvocationFuture<Void> muteTeam(String teamId, TeamMessageNotifyTypeEnum notifyType);
253 
254 
261  InvocationFuture<Void> revokeMessage(IMMessage message);
262 
263 
272  InvocationFuture<Void> revokeMessage(IMMessage message, String customApnsText, Map<String, Object> pushPayload);
273 
274 
284  InvocationFuture<Void> revokeMessage(IMMessage message, String customApnsText, Map<String, Object> pushPayload, boolean shouldNotifyBeCount);
285 
296  InvocationFuture<Void> revokeMessage(IMMessage message, String customApnsText,
297  Map<String, Object> pushPayload, boolean shouldNotifyBeCount,
298  String postscript);
299 
305  InvocationFuture<List<SuperTeam>> searchTeamsByKeyword(String keyword);
306 
314  InvocationFuture<SuperTeam> applyJoinTeam(String tid, String postscript);
315 
324  InvocationFuture<Void> passApply(String teamId, String account);
325 
335  InvocationFuture<Void> rejectApply(String teamId, String account, String reason);
336 
344  InvocationFuture<Void> acceptInvite(String teamId, String inviter);
345 
354  InvocationFuture<Void> declineInvite(String teamId, String inviter, String reason);
355 
363  InvocationFuture<Void> sendAckSession(String teamId, long timestamp);
364 
373  InvocationFuture<List<SuperTeamMember>> addManagers(String teamId, List<String> accounts);
374 
383  InvocationFuture<List<SuperTeamMember>> removeManagers(String teamId, List<String> managers);
384 
392  InvocationFuture<Void> muteAllTeamMember(String teamId, boolean mute);
393 
402  InvocationFuture<Void> muteTeamMembers(String teamId, ArrayList<String> accountList, boolean mute);
403 
413  InvocationFuture<Void> updateMemberNick(String teamId, String account, String nick);
414 
426  InvocationFuture<List<SuperTeamMember>> transferTeam(String tid, String account, boolean quit);
427 
428 
435  InvocationFuture<List<String>> searchTeamIdByName(String name);
436 
444 
451  InvocationFuture<Void> addTeamMembersFollow(String teamId,List<String> accountIds);
452 
459  InvocationFuture<Void> removeTeamMembersFollow(String teamId,List<String> accountIds);
460 }
描述群成员资料的数据结构 对于讨论组,不能设置群昵称,也没有管理员,不用关心TeamMemberType ...
云信 IM 消息服务观察者接口类,提供消息、会话等服务的监听接口。
云信 IM 消息构造器,提供构建各类型消息的接口。
创建群、修改群资料时的域定义
NIM消息实体数据结构。 第三方APP不要调用设置类接口,调用之后不会被持久化
Definition: IMMessage.java:12
Created by hzsunyj on 2019-05-24.
Definition: SuperTeam.java:17
SDK 核心接口类,用于初始化 SDK,获取各个服务能力接口,获取当前状态等功能。
Definition: NIMClient.java:34