refuseFriendApplication method

  1. @override
Future<V2TimValueCallback<V2TimFriendOperationResult>> refuseFriendApplication({
  1. required int type,
  2. required String userID,
})
override

拒绝好友申请

参数

application	好友申请信息,getFriendApplicationList 成功后会返回

Implementation

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