T
- The source typeR
- The adapted result typepublic interface CallAdapter<T,R>
Install a implementation of CallAdapter.Factory
by calling
com.pcloud.networking.api.ApiComposer.Builder#addAdapterFactory(Factory)
or
ApiComposer.Builder.addAdapterFactories(Iterable)
Modifier and Type | Interface and Description |
---|---|
static class |
CallAdapter.Factory
A factory class for creating CallAdapter instances.
|
Modifier and Type | Method and Description |
---|---|
R |
adapt(Call<T> call)
Adapt a Call to a R
|
R |
adapt(MultiCall<?,T> call)
Adapt a MultiCall to a R
|
java.lang.reflect.Type |
responseType() |
java.lang.reflect.Type responseType()
R adapt(Call<T> call) throws java.io.IOException
call
- a non-null Call instancejava.io.IOException
- on a possible network failure