QueryChannelsRequest
Request body class for querying channels.
Constructors
Constructs a QueryChannelsRequest for a server-side predefined filter. filter and querySort are ignored by the backend in this mode and are defaulted to neutral values.
Properties
FilterObject conditions used by backend to filter queries response. If predefinedFilter is specified, this field is ignored.
Values to interpolate into the predefined filter template.
Whether to fill Channel.activeMemberCount on the returned channels. When set, the request fails if the returned channels have more than 50,000 members in total, so lower limit for large channels. The flag is kept for the next pages and for the refresh after a reconnect.
Whether each channel is loaded with the current user's scheduled messages in it, in Channel.scheduledMessages. They are also saved in ChatClient.scheduledMessages, where the ones of a returned channel that the server no longer has are removed. Channel.scheduledMessages is null when the server did not send them. Defaults to false.
True if this request is querying the first page, otherwise False.
Number of members in the response. When null, the server-side default is used.
Number of messages in the response. When null, the server-side default is used.
QuerySorter Sort specification for api queries. If predefinedFilter is specified, this field is ignored.
Values to interpolate into the predefined sort template.
Functions
Sets the number of channels to be returned by this backend.
Sets the limit of number of messages to be returned by this backend.
Sets the offset to this request.