PublicGroupChannelListQueryParams

class PublicGroupChannelListQueryParams @JvmOverloads constructor(var order: GroupChannelListQueryOrder = GroupChannelListQueryOrder.CHRONOLOGICAL, var includeEmpty: Boolean = true, var includeFrozen: Boolean = true, var includeMetadata: Boolean = true, var superChannelFilter: SuperChannelFilter = SuperChannelFilter.ALL, var membershipFilter: MembershipFilter = MembershipFilter.JOINED, var metaDataOrderKeyFilter: String? = null, var customTypeStartsWithFilter: String? = null, var channelUrlsFilter: List<String>? = null, var channelNameContainsFilter: String? = null, var customTypesFilter: List<String>? = null, var limit: Int = QUERY_DEFAULT_LIMIT)

Params for creating a PublicGroupChannelListQuery object.

Since

4.0.0

See also

Constructors

Link copied to clipboard
constructor(order: GroupChannelListQueryOrder = GroupChannelListQueryOrder.CHRONOLOGICAL, includeEmpty: Boolean = true, includeFrozen: Boolean = true, includeMetadata: Boolean = true, superChannelFilter: SuperChannelFilter = SuperChannelFilter.ALL, membershipFilter: MembershipFilter = MembershipFilter.JOINED, metaDataOrderKeyFilter: String? = null, customTypeStartsWithFilter: String? = null, channelUrlsFilter: List<String>? = null, channelNameContainsFilter: String? = null, customTypesFilter: List<String>? = null, limit: Int = QUERY_DEFAULT_LIMIT)

Properties

Link copied to clipboard

A channel name filter. GroupChannel list containing the passed channel name will be returned. If you pass name such as "abc", then the returned channel list will be containing name like "abc". It will return null if channel name filter hasn't been set before.

Link copied to clipboard

List of channel URL filter. It will return null if channel URL filter hasn't been set before. GroupChannel list containing only and exactly the passed GroupChannel URLs will be returned.

Link copied to clipboard

Restricts the search scope to only retrieve group channels which have been created after the specified time, in milliseconds.

Link copied to clipboard

Restricts the search scope to only retrieve group channels which have been created before the specified time, in milliseconds.

Link copied to clipboard

List of custom type filter. GroupChannel list containing only and exactly the passed custom types will be returned. It will return null if custom types filter hasn't been set before.

Link copied to clipboard

A filter to return channels that start with the specified customType. It will return null if custom type starts with filter hasn't been set before.

Link copied to clipboard

Checks whether query result includes empty channels. (channels without messages). This flag is false by default.

Link copied to clipboard

Checks whether query result includes frozen channels. This flag is true by default.

Link copied to clipboard

Checks whether to include channel metadata on fetch. This flag is true by default.

Link copied to clipboard
var limit: Int

The maximum number of items per queried page.

Link copied to clipboard

Membership filter. Default is MembershipFilter.JOINED.

Link copied to clipboard

The metadataKey set with either metaDataValues or metaDataValueStartsWith.

Link copied to clipboard

Meta data order key filter. It will return null if meta data order key filter hasn't been set before. This filter will work only if order is GroupChannelListQueryOrder.METADATA_VALUE_ALPHABETICAL

Link copied to clipboard

Works exclusively with metaDataValueStartsWith.

Link copied to clipboard

Works exclusively with metaDataValues.

Link copied to clipboard

Super channel filter. Refer to SuperChannelFilter.

Functions

Link copied to clipboard
fun copy(order: GroupChannelListQueryOrder = this.order, includeEmpty: Boolean = this.includeEmpty, includeFrozen: Boolean = this.includeFrozen, includeMetadata: Boolean = this.includeMetadata, superChannelFilter: SuperChannelFilter = this.superChannelFilter, membershipFilter: MembershipFilter = this.membershipFilter, metaDataOrderKeyFilter: String? = this.metaDataOrderKeyFilter, customTypeStartsWithFilter: String? = this.customTypeStartsWithFilter, channelUrlsFilter: List<String>? = this.channelUrlsFilter, channelNameContainsFilter: String? = this.channelNameContainsFilter, customTypesFilter: List<String>? = this.customTypesFilter, limit: Int = this.limit, createdBefore: Long? = this.createdBefore, createdAfter: Long? = this.createdAfter): PublicGroupChannelListQueryParams
Link copied to clipboard
fun setMetaDataValuesFilter(metaDataKey: String, metaDataValues: List<String>)

Sets GroupChannel meta data filter. GroupChannel list containing only and exactly the passed GroupChannel meta data will be returned. If this is set, it will reset the filter set from metaDataValueStartsWith.

Link copied to clipboard
fun setMetaDataValueStartsWithFilter(metaDataKey: String, metaDataValueStartsWith: String)

Sets GroupChannel meta data filter. GroupChannel list containing passed GroupChannel meta data key with values that starts with the passed on value will be returned. If this is set, it will reset the filter set from metaDataValues.