Skip to content

Instantly share code, notes, and snippets.

@enginebai
Created November 2, 2020 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enginebai/540c590e2004a25ce5673be4fde36dbd to your computer and use it in GitHub Desktop.
Save enginebai/540c590e2004a25ce5673be4fde36dbd to your computer and use it in GitHub Desktop.
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