GroupChannelMemberListRequest constructor

GroupChannelMemberListRequest({
  1. required String channelUrl,
  2. String? token,
  3. int limit = 30,
  4. OperatorFilter operatorFilter = OperatorFilter.all,
  5. MutedMemberFilter mutedMemberFilter = MutedMemberFilter.all,
  6. MemberStateFilter memberStateFilter = MemberStateFilter.all,
  7. String? nicknameStartsWith,
  8. MemberListOrder order = MemberListOrder.nicknameAlphabetical,
})

Implementation

GroupChannelMemberListRequest({
  required String channelUrl,
  String? token,
  int limit = 30,
  OperatorFilter operatorFilter = OperatorFilter.all,
  MutedMemberFilter mutedMemberFilter = MutedMemberFilter.all,
  MemberStateFilter memberStateFilter = MemberStateFilter.all,
  String? nicknameStartsWith,
  MemberListOrder order = MemberListOrder.nicknameAlphabetical,
}) : super() {
  url = 'group_channels/$channelUrl/members';
  queryParams = {
    'limit': limit,
    if (token != null) 'token': token,
    'operator_filter': operatorFilterEnumMap[operatorFilter],
    'muted_member_filter': mutedMemberFilterEnumMap[mutedMemberFilter],
    'order': memberListOrderEnumMap[order],
    'member_state_filter': memberStateFilterEnumForQuery(memberStateFilter),
    if (nicknameStartsWith != null) 'nickname_startswith': nicknameStartsWith,
    //
    'show_read_receipt': 'true',
    'show_delivery_receipt': 'true',
    'show_member_is_muted': 'true',
  };
}