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
        }
    }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Boolean isLoading
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description