java - How complete list of object into another object uqing Rxjava -


on service, client has on or many relationships.

using rxjava when client want retrieve client object list of relationships.

something like:

datamanager.getclient(clientid)                     .zipwith(???)                     .observeon(androidschedulers.mainthread())                     .subscribeon(schedulers.io())                     .subscribe(); 

use map function change scope of data within observable:

datamanager.getclient(clientid)             .map(client -> client.relationships)             .observeon(androidschedulers.mainthread)             .subscribeon(schedulers.io())             .subscribe(list -> {                 *do something*             }); 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -