Created
May 29, 2017 10:38
-
-
Save pcg92/7cd3f074a4f22eacdc2f82c6e6fb5041 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void getPlaces(){ | |
mDataManager.getPlaces() | |
.flatMapIterable(placesDtos -> placesDtos) | |
.map(Place::mapper) | |
.toList() | |
.subscribeOn(Schedulers.newThread()) | |
.observeOn(AndroidSchedulers.mainThread()) | |
.subscribe(places -> { | |
getMvpView().setPlaces(places); | |
}, e -> { | |
Timber.e(e.getMessage()); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment