Last active
February 9, 2017 00:50
-
-
Save yemyatthu1990/a6e8bdfac792998cd719ee39f34c7085 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TownshipLocalDataStore implements TownshipDataStore { | |
private final TownshipCache townshipCache; | |
TownshipLocalDataStore(TownshipCache townshipCache){ | |
this.townshipCache = townshipCache; | |
} | |
//Return a list of townships from DB | |
@Override | |
public Observable<List<TownshipEntity>> townships() { | |
return townshipCache.get(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment