public class JsonObjectParser<T extends VirtualObject> extends Adapter.JsonObjectCallback
| Constructor and Description |
|---|
JsonObjectParser(Repository<T> repository,
ObjectCallback<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.JSONObject response)
The method invoked when the call completes successfully and the
response is a JSON object or
null if the response
string is "null". |
onSuccessonSuccesspublic JsonObjectParser(Repository<T> repository, ObjectCallback<T> callback)
public void onSuccess(org.json.JSONObject response)
Adapter.JsonObjectCallbacknull if the response
string is "null".onSuccess in class Adapter.JsonObjectCallbackresponse - The JSON object.public void onError(java.lang.Throwable throwable)
Adapter.Callbackthrowable - The Throwable.