| Package | Description |
|---|---|
| com.example.retrofit | |
| retrofit2 |
Retrofit turns your REST API into a Java interface.
|
| retrofit2.mock |
| Modifier and Type | Method and Description |
|---|---|
Call<List<SimpleService.Contributor>> |
SimpleService.GitHub.contributors(String owner,
String repo) |
Call<okhttp3.ResponseBody> |
DynamicBaseUrl.Pop.robots() |
| Modifier and Type | Method and Description |
|---|---|
Call<T> |
Call.clone()
Create a new, identical call to this one which can be enqueued or executed even if this call
has already been.
|
| Modifier and Type | Method and Description |
|---|---|
T |
CallAdapter.adapt(Call<R> call)
Returns an instance of
T which delegates to call. |
void |
Callback.onFailure(Call<T> call,
Throwable t)
Invoked when a network exception occurred talking to the server or when an unexpected
exception occurred creating the request or processing the response.
|
void |
Callback.onResponse(Call<T> call,
Response<T> response)
Invoked for a received HTTP response.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Call<T> |
Calls.defer(Callable<Call<T>> callable)
|
static <T> Call<T> |
Calls.failure(IOException failure) |
static <T> Call<T> |
Calls.response(Response<T> response) |
static <T> Call<T> |
Calls.response(T successValue) |
| Modifier and Type | Method and Description |
|---|---|
<R> T |
BehaviorDelegate.returning(Call<R> call) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Call<T> |
Calls.defer(Callable<Call<T>> callable)
|
Copyright © 2017 Square, Inc.. All rights reserved.