T - expected response typepublic abstract class Callback<T>
extends Object
Callback methods are executed using the retrofit2.Retrofit callback executor. When none is
specified, the following defaults are used:
| Constructor and Description |
|---|
Callback() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
failure(TwitterException exception)
Unsuccessful call due to network failure, non-2XX status code, or unexpected
exception.
|
void |
onFailure(<any> call,
Throwable t) |
void |
onResponse(<any> call,
<any> response) |
abstract void |
success(Result<T> result)
Called when call completes successfully.
|
public final void onResponse(<any> call,
<any> response)
public final void onFailure(<any> call,
Throwable t)
public abstract void success(Result<T> result)
result - the parsed result.public abstract void failure(TwitterException exception)