MessagesQueryParams

public final class MessagesQueryParams

History message pagination query parameters.

Used for ai.nexconn.chat.channel.BaseChannel.createMessagesQuery Create message Pagination query object.

Usage Example:

val params = MessagesQueryParams(channelIdentifier).apply {
pageSize = 30
isAscending = false
}
val query = BaseChannel.createMessagesQuery(params)
query.loadNextPage { messages, error ->
// Handle Result
}

Parameters

channelIdentifier

Target channel identifier

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
private Boolean isAscending

Whether ascending by time (From Old to New).

Link copied to clipboard
private Integer pageSize

Query count per page, Default 20.

Link copied to clipboard
private Long startTime

Start timestamp (milliseconds) for the query.

Functions

Link copied to clipboard
Link copied to clipboard
public final Integer getPageSize()

Query count per page, Default 20.

Link copied to clipboard
public final Long getStartTime()

Start timestamp (milliseconds) for the query.

Link copied to clipboard
public final Boolean isAscending()

Whether ascending by time (From Old to New).

Link copied to clipboard
public final Unit setAscending(Boolean isAscending)

Whether ascending by time (From Old to New).

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

Query count per page, Default 20.

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

Start timestamp (milliseconds) for the query.

Link copied to clipboard
public String toString()