|
|
@ -9,11 +9,7 @@ import io.reactivex.observers.DisposableObserver; |
|
|
|
import okhttp3.ResponseBody; |
|
|
|
import retrofit2.HttpException; |
|
|
|
|
|
|
|
/** |
|
|
|
* Created by Preyea R. Regmi |
|
|
|
* Use this wrapper class to abstract application wise network response for rx-retrofit 2.0. This type encapsulates the user specified data within GenericRssponseDataModel under "Data" field. |
|
|
|
* However this class uses a little bit of "reflection" underneath to avoid "Type Erasure" occured while inferring Type from supplied generics. Reflection will be removed at next phase. |
|
|
|
*/ |
|
|
|
|
|
|
|
public abstract class GenericApiObserverResponseV2<T> extends DisposableObserver<ResponseBody> { |
|
|
|
|
|
|
|
|
|
|
|