Skip to content

Instantly share code, notes, and snippets.

@adityawid
Created May 21, 2021 07:29
Show Gist options
  • Save adityawid/c236ad546b30631cae9ebe01cb706681 to your computer and use it in GitHub Desktop.
Save adityawid/c236ad546b30631cae9ebe01cb706681 to your computer and use it in GitHub Desktop.
class FavoriteMovieViewModel (
private val movieUseCase: MovieUseCase
) : ViewModel() {
val favMoviesasFlow = movieUseCase.getPagingFavoriteMovieFlow()
val favMoviesasLiveData = movieUseCase.getPagingFavoriteMovieLiveData()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment