Hi Agustín Rizzo, thank you!!
Not sure I fully got your question..
Repo has LD (Live Data).
View Model uses switchMap to observe Repo LD and update it, for the view’s use. so switchMap has the Repo LD as input, and outputs ViewModel LD.
Hi Prudhvi Raj Kumar,
I explain about how and why I create the view model objects on Part 1, here: https://proandroiddev.com/clean-easy-new-how-to-architect-your-app-part-1-e439668a523d
In general, it’s a POJO that holds the data for the view, in the simplest way for the view to use.
Let me know if it helps :)
Hi Peter Kalata, thank you for your comment!
I do plan to write about it in the future. The general flow, though:
* Repository goes and fetches data. * Repository adds the network call information to the data model, which it returns to the Use Case object (e.g. an error the server). The same way…