The Repository Pattern
Mediate between data sources cleanly.
Hide the Data Details
Your ViewModel should not know about DAOs or networks. A repository hides those details behind a clean, simple interface.
A Single Doorway to Data
The repository is the one place the rest of the app asks for data, whether it comes from Room, the network, or memory.