I could not apply it to rxjava2 anyway. Help me. I using before handle my model response this method with rxjava,
void getVehicleListTask(String userName, String userPassword) {
private Subscription mSubscription;
mSubscription = mDataManager.vehicleList(userName, userPassword)
.observeOn(AndroidSchedulers.mainThread())
.subscribeOn(Schedulers.io())
.subscribe(new Subscriber<GetVehicleList>() {
@Override
public void onCompleted() {
}
@Override
public void onError(Throwable e) {
}
@Override
public void onNext(GetVehicleList getVehicleList) {
}
});
}
I could not apply it to rxjava2 anyway. Help me. I using before handle my model response this method with rxjava,