ChannelOperatorsRemoveRequest constructor

ChannelOperatorsRemoveRequest({
  1. required ChannelType channelType,
  2. required String channelUrl,
  3. List<String> userIds = const [],
  4. bool removeAll = false,
})

Implementation

ChannelOperatorsRemoveRequest({
  required ChannelType channelType,
  required String channelUrl,
  List<String> userIds = const [],
  bool removeAll = false,
}) : super() {
  url = '${channelType.urlString}/$channelUrl/operators';
  body = {
    if (removeAll) 'delete_all': true,
    if (!removeAll) 'operator_ids': userIds,
  };
}