T
- expected response typepublic interface Callback<T>
Callback methods are executed using the RestAdapter
callback executor. When none is
specified, the following defaults are used:
Modifier and Type | Method and Description |
---|---|
void |
failure(RetrofitError error)
Unsuccessful HTTP response due to network failure, non-2XX status code, or unexpected
exception.
|
void |
success(T t,
Response response)
Successful HTTP response.
|
void failure(RetrofitError error)
Copyright © 2013 Square, Inc.. All Rights Reserved.