livePostExitRoom static method

Future<DataResult> livePostExitRoom({
  1. required int roomId,
  2. int? roomPlaceId,
  3. int? roomUserId,
})

Implementation

static Future<DataResult> livePostExitRoom(
    {required int roomId, int? roomPlaceId, int? roomUserId}) async {
  var res = await BaseDao.fromBaseEncryptV3(
    {
      'roomId': roomId,
      'roomPlaceId': roomPlaceId ?? '0',
      'roomUserId': roomUserId ?? '0'
    },
    Address.livePostExitRoom(),
  );
  if (res.result) {
    return DataResult(res.data, true);
  }
  return res;
}