Package io.ably.lib.types
Interface BasePaginatedResult<T>
-
- Type Parameters:
T-
public interface BasePaginatedResult<T>A type that represents a page of results from a paginated query. The response is accompanied by metadata that indicates the relative queries available. It works for both sync and async requests. Typically, one of the two options are chosen by wrapping this class to offer a PaginatedResult or AsyncPaginatedResult.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Http.Request<BasePaginatedResult<T>>current()Http.Request<BasePaginatedResult<T>>first()Perform the given relative querybooleanhasCurrent()booleanhasFirst()booleanhasNext()booleanisLast()T[]items()Get the contents as an array of component typeHttp.Request<BasePaginatedResult<T>>next()
-
-
-
Method Detail
-
items
T[] items()
Get the contents as an array of component type
-
first
Http.Request<BasePaginatedResult<T>> first()
Perform the given relative query
-
current
Http.Request<BasePaginatedResult<T>> current()
-
next
Http.Request<BasePaginatedResult<T>> next()
-
hasFirst
boolean hasFirst()
-
hasCurrent
boolean hasCurrent()
-
hasNext
boolean hasNext()
-
isLast
boolean isLast()
-
-