livePostCareRoom static method

Future<DataResult> livePostCareRoom({
  1. required bool isCareType,
  2. required int roomId,
})

Implementation

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