public static interface AsyncService.DataRetrieveCallback
Modifier and Type | Method and Description |
---|---|
void |
onRetrieveError(int code,
java.lang.String message,
GetTransaction transaction)
Called if the transaction doesn't complete successfully.
|
void |
onRetrieveOK(JSONArray objects,
GetTransaction transaction)
Called on successful completion of the transaction, with the
list of resource objects returned.
|
void onRetrieveOK(JSONArray objects, GetTransaction transaction)
objects
- array of JSON objects returnedtransaction
- the transaction, with updated statevoid onRetrieveError(int code, java.lang.String message, GetTransaction transaction)
code
- HTTP response codemessage
- error messagetransaction
- the transaction, with updated state