I have implemented how to achieve repository pattern. Means, Store the data once it was fetch from the server and store in the local data. And use that data when user don't have internet connectivity.
About
This repo provides the information and code about how to provide support for offline mode.