NIMSDK-AOS  10.5.0
FriendService.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.friend;
2 
3 import com.netease.nimlib.apt.annotation.NIMService;
8 
9 import java.util.List;
10 import java.util.Map;
11 
15 @NIMService("好友关系服务")
16 public interface FriendService {
17 
24  InvocationFuture<Void> addFriend(AddFriendData data);
25 
33  InvocationFuture<Void> ackAddFriendRequest(String account, boolean agree);
34 
41  InvocationFuture<Void> deleteFriend(String account);
42 
49  InvocationFuture<Void> deleteFriend(String account, boolean deleteAlias);
50 
56  List<Friend> getFriends();
57 
63  List<String> getFriendAccounts();
64 
71  Friend getFriendByAccount(String account);
72 
79  boolean isMyFriend(String account);
80 
89  InvocationFuture<Void> updateFriendFields(String friendAccount, Map<FriendFieldEnum, Object> fields);
90 
97  InvocationFuture<Void> addToBlackList(String account);
98 
105  InvocationFuture<Void> removeFromBlackList(String account);
106 
113  boolean isInBlackList(String account);
114 
120  List<String> getBlackList();
121 
129  InvocationFuture<Void> setMessageNotify(String account, boolean notify);
130 
137  boolean isNeedMessageNotify(String account);
138 
144  List<String> getMuteList();
145 
151  InvocationFuture<List<Friend>> searchFriendsByKeyword(String keyword);
152 
159  InvocationFuture<List<String>> searchAccountByAlias(String alias);
160 }
好友管理/好友关系/黑名单关系/消息提醒相关操作