Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
MovieHunt blog part4. list view model modified
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