fix: 'Fix return value type of 'getFriendsInfo'.
This commit is contained in:
parent
0dec034a55
commit
ebae12f11d
@ -15,7 +15,7 @@ class FriendshipManager {
|
|||||||
|
|
||||||
/// Query Friend Information
|
/// Query Friend Information
|
||||||
/// [userIDList] List of user IDs
|
/// [userIDList] List of user IDs
|
||||||
Future<List<FriendInfo>> getFriendsInfo({
|
Future<List<FullUserInfo>> getFriendsInfo({
|
||||||
required List<String> userIDList,
|
required List<String> userIDList,
|
||||||
String? operationID,
|
String? operationID,
|
||||||
}) =>
|
}) =>
|
||||||
@ -26,7 +26,7 @@ class FriendshipManager {
|
|||||||
"userIDList": userIDList,
|
"userIDList": userIDList,
|
||||||
"operationID": Utils.checkOperationID(operationID),
|
"operationID": Utils.checkOperationID(operationID),
|
||||||
}))
|
}))
|
||||||
.then((value) => Utils.toList(value, (v) => FriendInfo.fromJson(v)));
|
.then((value) => Utils.toList(value, (v) => FullUserInfo.fromJson(v)));
|
||||||
|
|
||||||
/// Send a Friend Request, the other party needs to accept the request to become friends.
|
/// Send a Friend Request, the other party needs to accept the request to become friends.
|
||||||
/// [userID] User ID to be invited
|
/// [userID] User ID to be invited
|
||||||
|
Loading…
x
Reference in New Issue
Block a user