Package ai.nexconn.chat.channel.query
Class SearchMessagesByTimeRangeQuery
-
- All Implemented Interfaces:
-
ai.nexconn.chat.internal.query.PageableQuery
public final class SearchMessagesByTimeRangeQuery implements PageableQuery<PageData<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 } }
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisLoading
-
Method Summary
Modifier and Type Method Description BooleanisLoading()UnitloadNextPage(OperationHandler<PageData<Message>> handler)-
-
Method Detail
-
isLoading
Boolean isLoading()
-
loadNextPage
Unit loadNextPage(OperationHandler<PageData<Message>> handler)
-
-
-
-