Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class FeedRepository() : BaseRepository() {
- fun loadFeeds(): LiveData<List<Feed>> {
- val data = MutableLiveData<List<Feed>>()
- AppExecutors.networkIO.execute {
- val feeds = RestAPI.fetchFeeds()
- data.postValue(feeds)
- }
- return data
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement