blakelee
07/25/2017, 5:44 AMapi.getUsers() //Gets a list<userlistunfiltered>
.subscribeOn(<http://Schedulers.io|Schedulers.io>())
.flatMapIterable {
it.map { //Turns this list<userlistunfiltered> single userlistunfiltered items
api.getUserByLogin(it.login) //item now becomes userunfiltered
.map { it.toUser } //convert userunfiltered to a user
}
}
.observeOn(AndroidSchedulers.mainThread())
.subscribe {
//I want to put the list<user> into db here
}