-
public final class OperatorListQuery
A class representing query to retrieve operator lists related to User.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
OperatorListQuery.OperatorListQueryResultHandler
OperatorListQueryResult handler. This handler callback for next.
-
Method Summary
Modifier and Type Method Description static OperatorListQuery
create(@NonNull() BaseChannel.ChannelType channelType, @NonNull() String channelUrl)
Creates a query instance to get the operator list from given channel url. void
setLimit(int limit)
Sets the maximum number of operators 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(OperatorListQuery.OperatorListQueryResultHandler handler)
Gets the list of operators. -
-
Method Detail
-
create
@NonNull() static OperatorListQuery create(@NonNull() BaseChannel.ChannelType channelType, @NonNull() String channelUrl)
Creates a query instance to get the operator list from given channel url.
- Parameters:
channelType
- a type of channel.channelUrl
- an url of channel.
-
setLimit
void setLimit(int limit)
Sets the maximum number of operators per queried page.
- Parameters:
limit
- The maximum number of operators 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(OperatorListQuery.OperatorListQueryResultHandler handler)
Gets the list of operators. 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 operator 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.
-
-
-
-