reportUser static method

Future<CommonResultModel> reportUser({
  1. required String roomId,
  2. required String buserChatId,
  3. required String buserNick,
  4. required String buserMsg,
})

user 신고하기

Implementation

static Future<CommonResultModel> reportUser({
  required String roomId, //채널 키
  required String buserChatId, // 차단유저 채팅ID
  required String buserNick, // 차단유저 닉네임
  required String buserMsg, // 차단유저 메세지
}) async {
  var uri = ApiPath.reportUser.addPostParam({
    'room_id': roomId,
    'buser_chat_id': buserChatId,
    'buser_nick': buserNick,
    'buser_msg': buserMsg,
  });
  var response = await post(uri);
  return CommonResultModel.fromJson(json.decode(response.body));
}