SearchMessagesByTimeRangeQuery

public final class SearchMessagesByTimeRangeQuery implements PageableQuery<Message>

by Keyword and Time range search message Pagination query object.

Based on Keyword In specified Time range within Search messages, Supports offset Pagination.

Via BaseChannel.createSearchMessagesByTimeRangeQuery Create instance, Not cannot be constructed directly.

Usage Example:

val params = SearchMessagesByTimeRangeQueryParams(
keyword = "hello",
startTime = startTimestamp,
endTime = endTimestamp
)
val query = channel.createSearchMessagesByTimeRangeQuery(params)

query.loadNextPage { messages, error ->
if (error == null && messages != null) {
// Handle search results
}
}

Properties

Link copied to clipboard
private final Boolean isLoading

Whether positive In load.

Functions

Link copied to clipboard
public Boolean isLoading()

Whether positive In load.

Link copied to clipboard
public Unit loadNextPage(OperationHandler<List<Message>> handler)

Load next page data.