Created
July 10, 2019 00:53
-
-
Save juliuscanute/f4299121860f4933547d90a28d82858e to your computer and use it in GitHub Desktop.
Data source factory
This file contains hidden or 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
class DictionaryAllWordsDataSourceFactory( | |
private val repository: Repository, | |
private val networkState: MutableLiveData<Event<NetworkMessage>> | |
) : | |
DataSource.Factory<Int, Meaning>() { | |
override fun create(): DataSource<Int, Meaning> { | |
return DictionaryAllWordsDataSource(repository, networkState) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment