T- Successful response body type.
public interface Callback<T>
Callback methods are executed using the
Retrofit callback executor. When none is
specified, the following defaults are used:
|Modifier and Type||Method and Description|
Invoked when a network exception occurred talking to the server or when an unexpected exception occurred creating the request or processing the response.
Invoked for a received HTTP response.
Note: An HTTP response may still indicate an application-level failure such as a 404 or 500.
Response.isSuccessful() to determine if the response indicates success.
Copyright © 2017 Square, Inc.. All rights reserved.