Package 

Class MessageListQuery

    • Method Summary

      Modifier and Type Method Description
      synchronized boolean isLoading() Checks if the current query is in communication progress with server.
      synchronized void next(long messageTimestamp, int limit, boolean reverse, MessageListQuery.MessageListQueryResult handler) Requests query result for the next messages from given timestamp.
      synchronized void prev(long messageTimestamp, int limit, boolean reverse, MessageListQuery.MessageListQueryResult handler) Requests query result for the previous messages from given timestamp.
      synchronized void load(long messageTimestamp, int prevLimit, int nextLimit, boolean reverse, MessageListQuery.MessageListQueryResult handler) Requests query result for the previous and next messages given timestamp.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isLoading

         synchronized boolean isLoading()

        Checks if the current query is in communication progress with server.

      • next

         synchronized void next(long messageTimestamp, int limit, boolean reverse, MessageListQuery.MessageListQueryResult handler)

        Requests query result for the next messages from given timestamp. The queried result is passed to handler as list.

        Parameters:
        messageTimestamp - Starting message timestamp to query.
        limit - Maximum number of messages to load.
        reverse - If true the queried result will be returned by creation time descending order.
        handler - Callback handler.
      • prev

         synchronized void prev(long messageTimestamp, int limit, boolean reverse, MessageListQuery.MessageListQueryResult handler)

        Requests query result for the previous messages from given timestamp. The queried result is passed to handler as list.

        Parameters:
        messageTimestamp - Starting message timestamp to query.
        limit - Maximum number of messages to load.
        reverse - If true the queried result will be returned by creation time descending order.
        handler - Callback handler.
      • load

         synchronized void load(long messageTimestamp, int prevLimit, int nextLimit, boolean reverse, MessageListQuery.MessageListQueryResult handler)

        Requests query result for the previous and next messages given timestamp. The queried result is passed to handler as list.

        Parameters:
        messageTimestamp - Timestamp.
        prevLimit - Maximum number of previous messages to load.
        nextLimit - Maximum number of next messages to load.
        reverse - If true the queried result will be returned by creation time descending order.
        handler - Callback handler.