QueryChannelsRequest

data class QueryChannelsRequest @JvmOverloads constructor(val filter: FilterObject, var offset: Int = 0, var limit: Int, val querySort: QuerySorter<Channel> = QuerySortByField(), var messageLimit: Int? = null, var memberLimit: Int? = null, val predefinedFilter: String? = null, val filterValues: Map<String, Any>? = null, val sortValues: Map<String, Any>? = null) : ChannelRequest<QueryChannelsRequest>

Request body class for querying channels.

Constructors

Link copied to clipboard
constructor(filter: FilterObject, offset: Int = 0, limit: Int, querySort: QuerySorter<Channel> = QuerySortByField(), messageLimit: Int? = null, memberLimit: Int? = null, predefinedFilter: String? = null, filterValues: Map<String, Any>? = null, sortValues: Map<String, Any>? = null)
constructor(predefinedFilter: String, limit: Int, filterValues: Map<String, Any>? = null, sortValues: Map<String, Any>? = null, offset: Int = 0, messageLimit: Int? = null, memberLimit: Int? = null)

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

Link copied to clipboard

FilterObject conditions used by backend to filter queries response. If predefinedFilter is specified, this field is ignored.

Link copied to clipboard

Values to interpolate into the predefined filter template.

Link copied to clipboard

True if this request is querying the first page, otherwise False.

Link copied to clipboard
var limit: Int

Number of channels to be returned by this query channels request.

Link copied to clipboard

Number of members in the response. When null, the server-side default is used.

Link copied to clipboard

Number of messages in the response. When null, the server-side default is used.

Link copied to clipboard
var offset: Int

Pagination offset.

Link copied to clipboard

ID of a server-side predefined filter to use instead of filter. When set, filter and querySort are ignored by the backend.

Link copied to clipboard
open override var presence: Boolean
Link copied to clipboard

QuerySorter Sort specification for api queries. If predefinedFilter is specified, this field is ignored.

Link copied to clipboard

List of sort specifications.

Link copied to clipboard

Values to interpolate into the predefined sort template.

Link copied to clipboard
open override var state: Boolean
Link copied to clipboard
open override var watch: Boolean

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Sets the number of channels to be returned by this backend.

Link copied to clipboard

Sets the limit of number of messages to be returned by this backend.

Link copied to clipboard

Sets the offset to this request.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard