GroupChannelMemberListRequest constructor
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,
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',
};
}