Skip to content

rxjava to rxjava2 Difficulties #5129

@ulaserdegor

Description

@ulaserdegor

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) {
          }
     });
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions