| Constructor and Description |
|---|
VoidResponseCallback() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
onFailure(APIError error)
This method called if request to HTTP API failed due to some reason.
|
void |
onFailure(retrofit2.Call<Void> call,
Throwable t) |
void |
onResponse(retrofit2.Call<Void> call,
retrofit2.Response<Void> response) |
abstract void |
onSuccess(boolean result)
This method called if request to HTTP API successful.
|
public void onResponse(retrofit2.Call<Void> call, retrofit2.Response<Void> response)
onResponse in interface retrofit2.Callback<Void>public void onFailure(retrofit2.Call<Void> call, Throwable t)
onFailure in interface retrofit2.Callback<Void>public abstract void onSuccess(boolean result)
result - response data.Copyright © 2016. All rights reserved.