NIMSDK-AOS  9.15.0
ChatRoomService.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.chatroom;
2 
3 import androidx.annotation.NonNull;
4 
5 import com.netease.nimlib.apt.annotation.NIMService;
26 
27 import java.util.List;
28 import java.util.Map;
29 
33 @NIMService("聊天室服务")
34 public interface ChatRoomService {
42 
50  AbortableFuture<EnterChatRoomResultData> enterChatRoomEx(EnterChatRoomData roomData, int retryCount);
51 
60  int getEnterErrorCode(String roomId);
61 
67  void exitChatRoom(String roomId);
68 
74  void exitChatRooms(ChatRoomModeEnum mode);
75 
83  InvocationFuture<Void> sendMessage(ChatRoomMessage msg, boolean resend);
84 
85 
94  AbortableFuture<Void> downloadAttachment(ChatRoomMessage msg, boolean thumb);
95 
104  InvocationFuture<List<ChatRoomMessage>> pullMessageHistory(String roomId, long startTime, int limit);
105 
115  InvocationFuture<List<ChatRoomMessage>> pullMessageHistoryEx(String roomId, long startTime, int limit, QueryDirectionEnum direction);
116 
117 
132  InvocationFuture<List<ChatRoomMessage>> pullMessageHistoryExType(String roomId, long startTime, int limit, QueryDirectionEnum direction, MsgTypeEnum[] typeEnums);
133 
140 
147  InvocationFuture<ChatRoomInfo> fetchRoomInfo(String roomId);
148 
160  InvocationFuture<List<ChatRoomMember>> fetchRoomMembers(String roomId, MemberQueryType memberQueryType, long time, int limit);
161 
171  InvocationFuture<List<ChatRoomMember>> fetchRoomMembersByTag(String roomId, String tag, long time, int limit);
172 
180  InvocationFuture<List<ChatRoomMember>> fetchRoomMembersByIds(String roomId, List<String> accounts);
181 
189  InvocationFuture<Long> queryTagMembersCount(String roomId, String tag);
190 
198  InvocationFuture<ChatRoomMember> markChatRoomBlackList(boolean isAdd, MemberOption memberOption);
199 
207  InvocationFuture<ChatRoomMember> markChatRoomMutedList(boolean isAdd, MemberOption memberOption);
208 
217  InvocationFuture<Void> markChatRoomTempMute(boolean needNotify, long duration, MemberOption memberOption);
218 
230  InvocationFuture<Void> markChatRoomTempMuteByTag(String roomId, String targetTag, boolean needNotify, long duration, Map<String, Object> notifyExtension, String notifyTargetTags);
231 
239  InvocationFuture<ChatRoomMember> markChatRoomManager(boolean isAdd, MemberOption memberOption);
240 
248  InvocationFuture<ChatRoomMember> markNormalMember(boolean isAdd, MemberOption memberOption);
249 
258  InvocationFuture<Void> kickMember(String roomId, String account, Map<String, Object> notifyExtension);
259 
269  InvocationFuture<Void> updateRoomInfo(String roomId, ChatRoomUpdateInfo chatRoomUpdateInfo, boolean needNotify, Map<String, Object> notifyExtension);
270 
281  InvocationFuture<Void> updateRoomInfo(String roomId, ChatRoomUpdateInfo chatRoomUpdateInfo, boolean needNotify, Map<String, Object> notifyExtension,
282  AntiSpamConfig antiSpamConfig);
283 
293  InvocationFuture<Void> updateMyRoomRole(String roomId, ChatRoomMemberUpdate chatRoomMemberUpdate, boolean needNotify, Map<String, Object> notifyExtension);
294 
305  InvocationFuture<Void> updateMyRoomRole(String roomId, ChatRoomMemberUpdate chatRoomMemberUpdate, boolean needNotify, Map<String, Object> notifyExtension,AntiSpamConfig antiSpamConfig);
306 
315  InvocationFuture<Void> updateQueue(String roomId, String key, String value);
316 
326  InvocationFuture<Void> updateQueueEx(String roomId, String key, String value, boolean isTransient);
327 
338  InvocationFuture<Void> updateQueue(String roomId, String key, String value, boolean isTransient, String elementAccid);
339 
340 
350  InvocationFuture<List<String>> batchUpdateQueue(String roomId, List<Entry<String, String>> queues, boolean needNotify, Map<String, Object> notifyExt);
351 
359  InvocationFuture<Entry<String, String>> pollQueue(String roomId, String key);
360 
367  InvocationFuture<List<Entry<String, String>>> fetchQueue(String roomId);
368 
375  InvocationFuture<Void> dropQueue(String roomId);
376 
383  InvocationFuture<List<NimRobotInfo>> pullAllRobots(String roomId);
384 
391  InvocationFuture<Void> updateChatRoomTags(String roomId, ChatRoomTagsInfo tagsInfo);
392 
400  InvocationFuture<Void> updateLocation(String roomId, ChatRoomSpatialLocation location);
401 }
可中断操作的调用跟踪接口。
分页获取成员查询类型 Created by hzxuwen on 2016/1/25.
可序列化的键值对
Definition: Entry.java:9