public abstract class AbstractClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
accessToken |
protected retrofit2.Retrofit.Builder |
builder |
protected okhttp3.OkHttpClient.Builder |
httpClient |
| Constructor and Description |
|---|
AbstractClient(String baseUrl,
String accessToken)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<S> S |
createService(Class<S> serviceClass) |
Object |
handleResponse(retrofit2.Response<?> response)
Handle response from Virgil service.
|
protected okhttp3.OkHttpClient.Builder httpClient
protected retrofit2.Retrofit.Builder builder
protected String accessToken
public <S> S createService(Class<S> serviceClass)
public Object handleResponse(retrofit2.Response<?> response) throws IOException
response - IOExceptionCopyright © 2016. All rights reserved.