ChannelsQueryParams

public final class ChannelsQueryParams

Channel list pagination query parameters.

Used for com.nexconn.chat.channel.BaseChannel.createChannelsQuery Creates a pagination query object. Create all after Parameter Not modifiable, ensure Query process Parameter consistency.

Usage Example:

val params = ChannelListParams(
channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP)
).apply {
pageSize = 20
topPriority = true
}
val query = BaseChannel.createChannelListQuery(params)
query.loadNextPage { list, error ->
}
}

Query count per page, Default 20.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
private final List<ChannelType> channelTypes
Link copied to clipboard
private Integer pageSize

Whether pinned first.

Link copied to clipboard
private Boolean topPriority

Pass true indicates pinned channel priority Returns, Pass false Then Result only by When time Sort.

Functions

Link copied to clipboard
public final List<ChannelType> getChannelTypes()
Link copied to clipboard
public final Integer getPageSize()

Whether pinned first.

Link copied to clipboard
public final Boolean getTopPriority()

Pass true indicates pinned channel priority Returns, Pass false Then Result only by When time Sort.

Link copied to clipboard
public final Unit setPageSize(Integer pageSize)

Whether pinned first.

Link copied to clipboard
public final Unit setTopPriority(Boolean topPriority)

Pass true indicates pinned channel priority Returns, Pass false Then Result only by When time Sort.

Link copied to clipboard
public String toString()