Created
June 15, 2020 02:32
-
-
Save ekoo/4ff450072226a3226397efaf42b0f6c4 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
class MainViewModel(private val repository: MainRepository = MainRepository()): ViewModel() { | |
fun movieList() = repository.getMovie().cachedIn(viewModelScope) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment