FriendshipManager class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acceptFriendApplication({required String userID, String? handleMsg, String? operationID})
→ Future<void>
-
同意对方添加自己为好友,双方建立双向好友关系
-
addBlack({required String userID, String? operationID, String? ex})
→ Future
-
把对方添加到黑名单中
-
addFriend({required String userID, String? reason, String? operationID})
→ Future<void>
-
发起好友申请,请求添加对方为好友
-
checkFriend({required List<String> userIDList, String? operationID})
→ Future<List<FriendshipInfo>>
-
检验好友关系,检查是否在自己的好友列表中
-
deleteFriend({required String userID, String? operationID})
→ Future<void>
-
删除好友
-
getBlackList({String? operationID})
→ Future<List<BlacklistInfo>>
-
获取黑名单列表
-
getFriendApplicationListAsApplicant({String? operationID})
→ Future<List<FriendApplicationInfo>>
-
获取本人作为添加者,主动发起的好友申请
-
getFriendApplicationListAsRecipient({String? operationID})
→ Future<List<FriendApplicationInfo>>
-
获取本人作为被添加者,收到的好友申请
-
getFriendList({String? operationID})
→ Future<List<FullUserInfo>>
-
获取好友列表,返回的列表包含了已拉入黑名单的好友
-
getFriendsList({required List<String> userIDList, String? operationID})
→ Future<List<FullUserInfo>>
-
获取指定好友的昵称、头像、备注,此函数从 APP 本地获取,建议一次最大10000个
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
refuseFriendApplication({required String userID, String? handleMsg, String? operationID})
→ Future<void>
-
拒绝对方添加自己为好友
-
removeBlack({required String userID, String? operationID})
→ Future
-
把用户从自己的黑名单中移除
-
searchFriends({List<String> keywordList = const [], bool isSearchUserID = false, bool isSearchNickname = false, String? operationID})
→ Future<List<SearchFriendsInfo>>
-
在自己的好友列表中通过关键词搜索
-
修改好友备注,为空时会删除备注
-
toString()
→ String
-
A string representation of this object.
inherited