public final class ApiCaller<ResultType> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ApiCaller.Listener<ResultType> |
| Constructor and Description |
|---|
ApiCaller(retrofit2.Call<ResultType> call) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
ResultType |
execute() |
void |
execute(ApiCaller.Listener<ResultType> listener) |
public ApiCaller(retrofit2.Call<ResultType> call)
public ResultType execute() throws ApiCallException, ApiErrorException
ApiCallExceptionApiErrorExceptionpublic void execute(ApiCaller.Listener<ResultType> listener)
public void cancel()
Copyright © 2017. All rights reserved.