@Test public void findAccountName() { }
public void findAccountName(String accountName) { Single.fromCallable(() -> { AccountRequest request = new AccountRequest(); request.accountName = accountName; return request; }) .flatMap(request -> mEosManager.findAccountByName(request)) .subscribeOn(mRxJavaSchedulers.getIo()) .observeOn(mRxJavaSchedulers.getMainThread()) .subscribe(result -> { mView.foundAccount(result); }, e -> { e.printStackTrace(); mView.noAccount(); }); }
ImportAccountPresenter extends BasePresenter<ImportAccountView> { public void findAccountName(String accountName) { Single.fromCallable(() -> { AccountRequest request = new AccountRequest(); request.accountName = accountName; return request; }) .flatMap(request -> mEosManager.findAccountByName(request)) .subscribeOn(mRxJavaSchedulers.getIo()) .observeOn(mRxJavaSchedulers.getMainThread()) .subscribe(result -> { mView.foundAccount(result); }, e -> { e.printStackTrace(); mView.noAccount(); }); } }
ImportAccountPresenter extends BasePresenter<ImportAccountView> { public void findAccountName(String accountName) { Single.fromCallable(() -> { AccountRequest request = new AccountRequest(); request.accountName = accountName; return request; }) .flatMap(request -> mEosManager.findAccountByName(request)) .subscribeOn(mRxJavaSchedulers.getIo()) .observeOn(mRxJavaSchedulers.getMainThread()) .subscribe(result -> { mView.foundAccount(result); }, e -> { e.printStackTrace(); mView.noAccount(); }); } ImportAccountPresenter(ImportAccountView view, EosManager eosManager, EncryptUtil encryptUtil,
            KeyStore keyStore, PocketAppManager pocketAppManager, RxJavaSchedulers rxJavaSchedulers); }
ImportAccountPresenter extends BasePresenter<ImportAccountView> { public void findAccountName(String accountName) { Single.fromCallable(() -> { AccountRequest request = new AccountRequest(); request.accountName = accountName; return request; }) .flatMap(request -> mEosManager.findAccountByName(request)) .subscribeOn(mRxJavaSchedulers.getIo()) .observeOn(mRxJavaSchedulers.getMainThread()) .subscribe(result -> { mView.foundAccount(result); }, e -> { e.printStackTrace(); mView.noAccount(); }); } ImportAccountPresenter(ImportAccountView view, EosManager eosManager, EncryptUtil encryptUtil,
            KeyStore keyStore, PocketAppManager pocketAppManager, RxJavaSchedulers rxJavaSchedulers); @Override void onCreate(); @Override void onPause(); @Override void onResume(); @Override void onDestroy(); void findAccountName(String accountName); void importAccount(@NonNull String accountName); void importAccount(@NonNull String accountName, @Nullable String privateKey, @Nullable String password); }
ImportAccountPresenter extends BasePresenter<ImportAccountView> { public void findAccountName(String accountName) { Single.fromCallable(() -> { AccountRequest request = new AccountRequest(); request.accountName = accountName; return request; }) .flatMap(request -> mEosManager.findAccountByName(request)) .subscribeOn(mRxJavaSchedulers.getIo()) .observeOn(mRxJavaSchedulers.getMainThread()) .subscribe(result -> { mView.foundAccount(result); }, e -> { e.printStackTrace(); mView.noAccount(); }); } ImportAccountPresenter(ImportAccountView view, EosManager eosManager, EncryptUtil encryptUtil,
            KeyStore keyStore, PocketAppManager pocketAppManager, RxJavaSchedulers rxJavaSchedulers); @Override void onCreate(); @Override void onPause(); @Override void onResume(); @Override void onDestroy(); void findAccountName(String accountName); void importAccount(@NonNull String accountName); void importAccount(@NonNull String accountName, @Nullable String privateKey, @Nullable String password);  }