QueryChannelsSpec

data class QueryChannelsSpec(val filter: FilterObject, val querySort: QuerySorter<Channel>, var cids: Set<String> = emptySet(), val predefinedFilterName: String? = null, val predefinedFilterValues: Map<String, Any>? = null, val predefinedSortValues: Map<String, Any>? = null)

Spec describing a query channels operation and the channel CIDs that belong to it.

For predefined-filter queries the predefinedFilterName plus value maps form the spec's stable identity in the offline DB and must not change once assigned. filter and querySort are the currently resolved values for this spec instance — for predefined queries the resolved values are captured by replacing the held spec instance (see QueryChannelsMutableState.applyResolvedSpec).

The 2-arg constructor and 2-arg copy are kept for binary compatibility with callers that predate the predefined-filter fields. They delegate to the primary constructor with the predefined fields defaulted to their empty/null values.

Constructors

Link copied to clipboard
constructor(filter: FilterObject, querySort: QuerySorter<Channel>, cids: Set<String> = emptySet(), predefinedFilterName: String? = null, predefinedFilterValues: Map<String, Any>? = null, predefinedSortValues: Map<String, Any>? = null)
constructor(filter: FilterObject, querySort: QuerySorter<Channel>)

Properties

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

Functions

Link copied to clipboard
fun copy(filter: FilterObject = this.filter, querySort: QuerySorter<Channel> = this.querySort): QueryChannelsSpec