ChannelsQueryParams

public final class ChannelsQueryParams

Channel list pagination query parameters.

Used with ai.nexconn.chat.channel.BaseChannel.createChannelsQuery to create a pagination query object. All parameters are immutable after creation to ensure consistency during the query process.

Usage Example:

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

Parameters

channelTypes

List of channel types to query.

Constructors

Link copied to clipboard

Properties

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

Number of items per page. Defaults to 20.

Link copied to clipboard
private Long startTime

Start timestamp (milliseconds) for the query.

Link copied to clipboard
private Boolean topPriority

Whether pinned channels are returned first.

Functions

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

Number of items per page. Defaults to 20.

Link copied to clipboard
public final Long getStartTime()

Start timestamp (milliseconds) for the query.

Link copied to clipboard
public final Boolean getTopPriority()

Whether pinned channels are returned first.

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

Number of items per page. Defaults to 20.

Link copied to clipboard
public final Unit setStartTime(Long startTime)

Start timestamp (milliseconds) for the query.

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

Whether pinned channels are returned first.

Link copied to clipboard
public String toString()