UserService class

Inheritance

Constructors

UserService(MethodChannel _methodChannel, Map<String, Handler> handlerMap)

Properties

callbacks Map<String, dynamic>
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
receiptIdKey String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addToBlackList(String userId) Future<void>
添加到黑名单
buildArguments<T>({Map? arg, Callback<T>? callback}) Map<String, dynamic>
build arguments for methodChannel
inherited
deleteFriend(String userId, Callback callback, [bool removeAlias = false]) Future<void>
删除好友
fetchUsers(List<String> userIds, Callback callback) Future<void>
从云信服务器批量获取用户资料
friendById(String userId) Future<User?>
从本地获取用户资料
isInBlackList(String userId) Future<bool?>
判断用户是否已被拉黑
isMyFriend(String userId) Future<bool?>
判断是否是我的好友
myBlackList() Future<List<User>?>
返回所有在黑名单中的用户列表
myFriends() Future<List<User>?>
返回我的好友列表
myMuteUserList() Future<List<User>?>
静音列表
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyForNewMsg(String userId) Future<bool?>
是否需要消息通知
removeFromBlackList(String userId, Callback callback) Future<void>
将用户移除黑名单
requestFriend(FriendRequest request, Callback callback) Future<void>
请求好友
toString() String
A string representation of this object.
inherited
updateFriend(User friend, Callback callback) Future<void>
修改自己与目标用户的关系
updateNotifyState(String userId, bool notify, Callback callback) Future<void>
设置消息提醒

Operators

operator ==(Object other) bool
The equality operator.
inherited