Class FriendInfoHandler
-
- All Implemented Interfaces:
public class FriendInfoHandler extends MultiDataHandler
Friend info handler.
Note: Call stop to release resources when done.
- Since:
5.12.0
-
-
Field Summary
Fields Modifier and Type Field Description public final static MultiDataHandler.DataKey<FriendRelation>KEY_CHECK_FRIENDpublic final static MultiDataHandler.DataKey<List<FriendDetail>>KEY_GET_FRIENDSpublic final static MultiDataHandler.DataKey<UserProfile>KEY_SEARCH_USERpublic final static MultiDataHandler.DataKey<FriendDetail>KEY_GET_FRIENDpublic final static MultiDataHandler.DataKey<Boolean>KEY_DELETE_FRIENDpublic final static MultiDataHandler.DataKey<Integer>KEY_APPLY_FRIENDpublic final static MultiDataHandler.DataKey<List<FriendDetail>>KEY_SEARCH_FRIENDSpublic final static MultiDataHandler.DataKey<Map<String, UserOnlineStatus>>KEY_GET_FRIENDS_ONLINE_STATUSprotected volatile booleanisAlive
-
Constructor Summary
Constructors Constructor Description FriendInfoHandler()
-
Method Summary
Modifier and Type Method Description voidstop()Stops the handler. voidgetFriends()voidgetUserOnlineStatus(String uid)voidgetUserOnlineStatus(List<FriendDetail> friendDetails)voidcheckFriend(String userId)voidgetFriendInfo(String userId)voiddeleteFriend(String userId, OnDataChangeListener<Boolean> listener)voidapplyFriend(String userId, String remark, OnDataChangeListener<Integer> listener)voidfindUser(String uniqueId)voidsearchFriendsInfo(String query)-
Methods inherited from class ai.nexconn.chatui.base.BaseHandler
isAlive -
Methods inherited from class ai.nexconn.chatui.base.MultiDataHandler
addDataChangeListener, notifyDataChange, notifyDataError, notifyDataError, replaceDataChangeListener -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
stop
void stop()
Stops the handler.
-
getFriends
void getFriends()
-
getUserOnlineStatus
void getUserOnlineStatus(String uid)
-
getUserOnlineStatus
void getUserOnlineStatus(List<FriendDetail> friendDetails)
-
checkFriend
void checkFriend(String userId)
-
getFriendInfo
void getFriendInfo(String userId)
-
deleteFriend
void deleteFriend(String userId, OnDataChangeListener<Boolean> listener)
-
applyFriend
void applyFriend(String userId, String remark, OnDataChangeListener<Integer> listener)
-
searchFriendsInfo
void searchFriendsInfo(String query)
-
-
-
-