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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -