| Modifier and Type | Method | Description |
|---|---|---|
void |
cancel() |
Cancel this call.
|
retrofit2.Call<T> |
clone() |
Create a new, identical call to this one which can be enqueued or executed even if this call
has already been.
|
void |
enqueue(retrofit2.Callback<T> callback) |
Asynchronously send the request and notify
callback of its response or if an error
occurred talking to the server, creating the request, or processing the response. |
retrofit2.Response<T> |
execute() |
Synchronously send the request and return its response.
|
int |
getCode() |
|
okhttp3.Headers |
getHeaders() |
|
String |
getMessage() |
|
boolean |
isCallbackFired() |
|
boolean |
isCanceled() |
True if
cancel() was called. |
boolean |
isExecuted() |
|
okhttp3.Request |
request() |
The original HTTP request.
|
void |
setCallbackFired(boolean callbackFired) |
|
void |
setResponseInfo(retrofit2.Response response) |
public GoPayCall(retrofit2.Call<T> call)
public retrofit2.Response<T> execute() throws IOException
execute in interface retrofit2.Call<T>IOException - if a problem occurred talking to the server.RuntimeException - (and subclasses) if an unexpected error occurs creating the request
or decoding the response.public void enqueue(retrofit2.Callback<T> callback)
callback of its response or if an error
occurred talking to the server, creating the request, or processing the response.enqueue in interface retrofit2.Call<T>callback - public boolean isExecuted()
isExecuted in interface retrofit2.Call<T>public void cancel()
cancel in interface retrofit2.Call<T>public boolean isCanceled()
cancel() was called.isCanceled in interface retrofit2.Call<T>public retrofit2.Call<T> clone()
public okhttp3.Request request()
request in interface retrofit2.Call<T>public boolean isCallbackFired()
public okhttp3.Headers getHeaders()
public int getCode()
public String getMessage()
public void setResponseInfo(retrofit2.Response response)
public void setCallbackFired(boolean callbackFired)
Copyright © 2018 The Apache Software Foundation. All rights reserved.