Package 

Class FriendListQuery


  • 
    public final class FriendListQuery
    
                        

    A class representing query to retrieve lists related to friend.

    • Method Summary

      Modifier and Type Method Description
      void setLimit(int limit) Sets the maximum number of friends per queried page.
      boolean hasNext() Checks if there is a next page.
      synchronized boolean isLoading() Checks if the current query is in communication progress with server.
      synchronized void next(FriendListQuery.FriendListQueryResultHandler handler) Gets the list of friends.
      • Methods inherited from class java.lang.Object

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

      • setLimit

         void setLimit(int limit)

        Sets the maximum number of friends per queried page.

        Parameters:
        limit - The maximum number of friends per page.
      • hasNext

         boolean hasNext()

        Checks if there is a next page.

      • isLoading

         synchronized boolean isLoading()

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

      • next

         synchronized void next(FriendListQuery.FriendListQueryResultHandler handler)

        Gets the list of friends. The queried result is passed to handler as List.If this method is repeatedly called after each next() is finished, it retrieves the following pages of the friends list.If there is no more pages to be read, an empty List (not null)is returned to handler.

        Parameters:
        handler - A callback handler to get the queried result.