Repository Pattern
This lesson will go over the implementation of the Repository pattern.
The Repository pattern helps us to abstract away the way we retrieve the data. The Repository provides a clean API so that the rest of the app can retrieve data easily.
Before implementing the Repository pattern, let’s re-factor BlogHttpClient
. Since we are not going to use the BlogHttpClient
directly inside activity, we can ...