Package io.ably.lib.http
Class AsyncHttpPaginatedQuery.AsyncHttpPaginatedResult
java.lang.Object
io.ably.lib.types.AsyncHttpPaginatedResponse
io.ably.lib.http.AsyncHttpPaginatedQuery.AsyncHttpPaginatedResult
- Enclosing class:
- AsyncHttpPaginatedQuery
A private class encapsulating the result of a single page response
-
Nested Class Summary
Nested classes/interfaces inherited from class io.ably.lib.types.AsyncHttpPaginatedResponse
AsyncHttpPaginatedResponse.Callback
-
Field Summary
Fields inherited from class io.ably.lib.types.AsyncHttpPaginatedResponse
errorCode, errorMessage, headers, statusCode, success
-
Method Summary
Modifier and TypeMethodDescriptionvoid
current
(AsyncHttpPaginatedResponse.Callback callback) void
first
(AsyncHttpPaginatedResponse.Callback callback) Obtain params required to perform the given relative queryboolean
boolean
hasFirst()
boolean
hasNext()
com.google.gson.JsonElement[]
items()
Get the contents as an array of component typevoid
next
(AsyncHttpPaginatedResponse.Callback callback)
-
Method Details
-
items
public com.google.gson.JsonElement[] items()Description copied from class:AsyncHttpPaginatedResponse
Get the contents as an array of component type- Specified by:
-
items
in classAsyncHttpPaginatedResponse
-
first
Description copied from class:AsyncHttpPaginatedResponse
Obtain params required to perform the given relative query- Specified by:
-
first
in classAsyncHttpPaginatedResponse
-
current
- Specified by:
-
current
in classAsyncHttpPaginatedResponse
-
next
- Specified by:
-
next
in classAsyncHttpPaginatedResponse
-
hasFirst
public boolean hasFirst()- Specified by:
-
hasFirst
in classAsyncHttpPaginatedResponse
-
hasCurrent
public boolean hasCurrent()- Specified by:
-
hasCurrent
in classAsyncHttpPaginatedResponse
-
hasNext
public boolean hasNext()- Specified by:
-
hasNext
in classAsyncHttpPaginatedResponse
-