I am trying to figure out how to use the result of one observable in another.
I have a service call which returns Observable<List<User>>
and after that I have another service call where I want to use the id of each user (user.getId()
) in the list of the previous observable to create a list of ids List<Int>
. Then this list of int will be passed to the second service call. How can I achieve this?
I hope the question makes sense. Let me know if I need to clarify myself.