Package io.ably.lib.types
Class AsyncHttpPaginatedResponse
java.lang.Object
io.ably.lib.types.AsyncHttpPaginatedResponse
- Direct Known Subclasses:
AsyncHttpPaginatedQuery.AsyncHttpPaginatedResult
public abstract class AsyncHttpPaginatedResponse
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAsyncHttpPaginatedResponse.CallbackAn interface allowing a client to be notified of the outcome of an asynchronous operation. -
Field Summary
Fields Modifier and Type Field Description interrorCodejava.lang.StringerrorMessageParam[]headersintstatusCodebooleansuccess -
Constructor Summary
Constructors Constructor Description AsyncHttpPaginatedResponse() -
Method Summary
Modifier and Type Method Description abstract voidcurrent(AsyncHttpPaginatedResponse.Callback callback)abstract voidfirst(AsyncHttpPaginatedResponse.Callback callback)Obtain params required to perform the given relative queryabstract booleanhasCurrent()abstract booleanhasFirst()abstract booleanhasNext()abstract com.google.gson.JsonElement[]items()Get the contents as an array of component typeabstract voidnext(AsyncHttpPaginatedResponse.Callback callback)
-
Field Details
-
success
public boolean success -
statusCode
public int statusCode -
errorCode
public int errorCode -
errorMessage
public java.lang.String errorMessage -
headers
-
-
Constructor Details
-
AsyncHttpPaginatedResponse
public AsyncHttpPaginatedResponse()
-
-
Method Details
-
items
public abstract com.google.gson.JsonElement[] items()Get the contents as an array of component type -
first
Obtain params required to perform the given relative query -
current
-
next
-
hasFirst
public abstract boolean hasFirst() -
hasCurrent
public abstract boolean hasCurrent() -
hasNext
public abstract boolean hasNext()
-