GroupChannelCountReferenceRequest constructor

GroupChannelCountReferenceRequest({
  1. required String channelUrl,
  2. required CountPreference prefs,
  3. String? userId,
})

Implementation

GroupChannelCountReferenceRequest(
    {required String channelUrl,
    required CountPreference prefs,
    String? userId})
    : super(userId: userId) {
  url = 'users/${userId ?? state.userId}/count_preference/$channelUrl';
  body = {'count_preference': countPreferenceEnumMap[prefs]};
}