acceptFriendApplication method

Future acceptFriendApplication(
  1. Map<String, dynamic> params
)

Implementation

Future<dynamic> acceptFriendApplication(Map<String, dynamic> params) async {
  try {
    final formateParams = AcceptFriendApplication.formateParams(params);
    final res = await promiseToFuture(
        timeWeb!.acceptFriendApplication(formateParams));
    if (res != null) {
      log(res);
    }

    return CommonUtils.returnSuccess<V2TimFriendOperationResult>(null);
  } catch (error) {
    return CommonUtils.returnErrorForValueCb<V2TimFriendOperationResult>(
        error);
  }
}