public class JsonArrayParser<T extends VirtualObject> extends Adapter.JsonArrayCallback
| Constructor and Description |
|---|
JsonArrayParser(Repository<T> repository,
ListCallback<T> callback) |
| Modifier and Type | Method and Description |
|---|---|
void |
onError(java.lang.Throwable throwable)
The method invoked when an error occurs.
|
void |
onSuccess(org.json.JSONArray response)
The method invoked when the call completes successfully and the
response is a JSON array or
null if the response
string is "null". |
onSuccessonSuccesspublic JsonArrayParser(Repository<T> repository, ListCallback<T> callback)
public void onSuccess(org.json.JSONArray response)
Adapter.JsonArrayCallbacknull if the response
string is "null".onSuccess in class Adapter.JsonArrayCallbackresponse - The JSON array.public void onError(java.lang.Throwable throwable)
Adapter.Callbackthrowable - The Throwable.