leodeleon
08/23/2019, 11:04 AMleodeleon
08/23/2019, 11:07 AMleodeleon
08/23/2019, 11:07 AMleodeleon
08/23/2019, 11:59 AMleodeleon
08/23/2019, 11:59 AMVlad
08/23/2019, 2:08 PMnextCallAdapter::adapt
. And If I am reading it correctly, make sure that that nextCallAdapter
uses rawResultType
, and not the returnType
, because you want the default call adapter to handle the Call<T>
and not the Call<Results<T>>
leodeleon
08/23/2019, 2:12 PMadapt
to get Result<T>
Vlad
08/23/2019, 2:16 PMCall<T>
from the nextCallAdapter::adapt
in an implementation of Call<Results<T>>
where the override fun enqueue()
will enqueue the adapted call and wrap into the Results
and will pass the wrapped response to its callback. The rest of the Call
methods can be delegated to the adapted Call<T>
leodeleon
08/23/2019, 8:13 PMleodeleon
08/23/2019, 8:13 PMleodeleon
08/23/2019, 8:13 PMleodeleon
08/23/2019, 8:14 PMResults<T>