addFriendsToFriendGroup method

  1. @override
Future<V2TimValueCallback<List<V2TimFriendOperationResult>>> addFriendsToFriendGroup({
  1. required String groupName,
  2. required List<String> userIDList,
})
override

添加好友到一个好友分组

Implementation

@override
Future<V2TimValueCallback<List<V2TimFriendOperationResult>>> addFriendsToFriendGroup({
  required String groupName,
  required List<String> userIDList,
}) async {
  Map<String, dynamic> param = {
    "groupName": groupName,
    "userIDList": userIDList,
  };
  var resp = V2TimValueCallback<List<V2TimFriendOperationResult>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "addFriendsToFriendGroup",
        buildFriendManagerParam(
          param,
        ),
      ),
    ),
  );
  log("addFriendsToFriendGroup", param, resp.toLogString());
  return resp;
}