I have two ways to get the data. A Api and in local storage (Sqlite) cache. I used the pattern Repository and made two repository returns a collection of entities.But to whom to entrust the proxy requests to repositories. If there is evidence that taking from Sqlite otherwise make a request to the API.
Aucun commentaire:
Enregistrer un commentaire