Observing people... wait what?
A Library with fluent API for generating random user data. Like Lorem Ipsum, but for people.
Getting 100 random women and men from random countries:
java RxPeople.with(context) .amount(100) .intoObservable() .subscribe(users -> { // todo: what you please });
Being specific: Getting 50 women from Brazil:
RxPeople.with(context) .amount(50) .nationality(Nationality.BR) .gender(Gender.FEMALE) .intoObservable() .subscribe(users -> { // todo: what you please });
.subscribeOn()and
.observeOn()it's the only way to guarantee the thread which the request is gonna run at (if you don't know why I'm asking this read my blog post Party tricks with Rxjava);
Add the dependency in the form:
groovy dependencies { compile 'com.cesarferreira.rxpeople:rxpeople:0.2.4' }
git checkout -b my-new-feature)
git commit -am 'Add some feature')
git push origin my-new-feature)