Package ai.nexconn.chat.channel.query
Class LocalMessagesByTimeQuery
-
- All Implemented Interfaces:
-
ai.nexconn.chat.internal.query.PageableQuery
public final class LocalMessagesByTimeQuery implements PageableQuery<PageData<Message>>
Local history message pagination query by timestamp.
Queries local messages starting from a specific timestamp, optionally filtered by message types. Supports pagination via loadNextPage.
Created via BaseChannel.createLocalMessagesByTimeQuery, cannot be constructed directly.
val params = LocalMessagesByTimeQueryParams(channelIdentifier).apply { sentTime = System.currentTimeMillis() messageTypes = listOf("RC:TxtMsg", "RC:ImgMsg") pageSize = 20 } val query = BaseChannel.createLocalMessagesByTimeQuery(params) query.loadNextPage { messages, error -> if (error == null && messages != null) { // Handle messages } }
-
-
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)
-
-
-
-