livePostMuteUser static method

Future<DataResult> livePostMuteUser({
  1. required bool isMute,
  2. required int userId,
  3. required int roomId,
})

Implementation

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