-
public final class FriendListQuery
A class representing query to retrieve lists related to friend.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
FriendListQuery.FriendListQueryResultHandler
FriendListQueryResult handler. This handler callback for next.
-
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. -
-
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
asList
.If this method is repeatedly called after eachnext()
is finished, it retrieves the following pages of the friends list.If there is no more pages to be read, an emptyList
(notnull
)is returned tohandler
.- Parameters:
handler
- A callback handler to get the queried result.
-
-
-
-