public final class OperatorListQuery
extends java.lang.Object
User
.Modifier and Type | Class and Description |
---|---|
static interface |
OperatorListQuery.OperatorListQueryResultHandler
OperatorListQueryResult handler.
|
Modifier and Type | Method and Description |
---|---|
static OperatorListQuery |
create(BaseChannel.ChannelType channelType,
java.lang.String channelUrl)
Creates a query instance to get the operator list from given channel url.
|
boolean |
hasNext()
Checks if there is a next page.
|
boolean |
isLoading()
Checks if the current query is in communication progress with server.
|
void |
next(OperatorListQuery.OperatorListQueryResultHandler handler)
Gets the list of operators.
|
void |
setLimit(int limit)
Sets the maximum number of operators per queried page.
|
public static OperatorListQuery create(BaseChannel.ChannelType channelType, java.lang.String channelUrl)
channelType
- a type of channel.channelUrl
- an url of channel.public void setLimit(int limit)
limit
- The maximum number of operators per page.public boolean hasNext()
true
if there is a next page.public boolean isLoading()
true
if the current query is not finished.public void next(OperatorListQuery.OperatorListQueryResultHandler handler)
handler
as List
.
If this method is repeatedly called after each next()
is finished, it retrieves the following pages of the operator list.
If there is no more pages to be read, an empty List
(not null
)
is returned to handler
.handler
- A callback handler to get the queried result. Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.