mardi 15 novembre 2016

The presenter and the data in android implementation of mvp

When implementing MVP in android the Presenter is responsible of the data. From examples I have found online the Presenter is passed in a datasource via dependency injection to use to fetch the data.
My question is how do we handle the case that the data come from multiple data sources? Should we pass multiple data sources to the presenter or create one data source for each data call?

Aucun commentaire:

Enregistrer un commentaire