T - public interface PaginatedResult<T>
| Modifier and Type | Method and Description |
|---|---|
PaginatedResult<T> |
current()
Returns a new PaginatedResult for the current page of results.
|
PaginatedResult<T> |
first()
Returns a new PaginatedResult for the first page of results.
|
boolean |
hasCurrent() |
boolean |
hasFirst() |
boolean |
hasNext()
Returns true if there are more pages available by calling next and returns false if this page is the last page available.
|
boolean |
isLast()
Returns true if this page is the last page and returns false if there are more pages available by calling next available.
|
T[] |
items()
Contains the current page of results; for example, an array of
Message or PresenceMessage
objects for a channel history request. |
PaginatedResult<T> |
next()
Returns a new PaginatedResult loaded with the next page of results.
|
T[] items()
Message or PresenceMessage
objects for a channel history request.
Spec: TG3
PaginatedResult<T> first() throws AblyException
Spec: TG5
AblyExceptionPaginatedResult<T> current() throws AblyException
Spec: TG5
AblyExceptionPaginatedResult<T> next() throws AblyException
Spec: TG4
AblyExceptionboolean hasFirst()
boolean hasCurrent()
boolean hasNext()
Spec: TG6
boolean isLast()
Spec: TG7