Created
November 2, 2020 22:56
-
-
Save enginebai/540c590e2004a25ce5673be4fde36dbd to your computer and use it in GitHub Desktop.
MovieHunt blog part4. list view model modified
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 MovieListViewModel : BaseViewModel() { | |
private val movieRepo: MovieRepo by inject() | |
fun fetchList(category: MovieCategory): Listing<MovieModel> = movieRepo.fetchMovieList(category) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment