Public Member Functions | |
abstract void | onError (int code, String message, String hint) |
abstract void | onResponse (AbstractCall< T > call) |
Implementing classes are called with the result of an API call.
Use the ConnectionManager to initiate API calls by running the ConnectionManager#call(AbstractCall, ApiCallback) method.
Definition at line 34 of file ApiCallback.java.
abstract void org.xbmc.android.jsonrpc.io.ApiCallback< T >.onError | ( | int | code, |
String | message, | ||
String | hint | ||
) | [pure virtual] |
An error has occurred.
message | Translated error message |
message | Translated error hint |
abstract void org.xbmc.android.jsonrpc.io.ApiCallback< T >.onResponse | ( | AbstractCall< T > | call | ) | [pure virtual] |
A successful response has been returned by JSON-RPC and was serialized into our model.
Use AbstractCall#getResult() or AbstractCall#getResults() in order to obtain the result of the API call.
call | Original API call containing the response. |