Difficulty: Hard
Location: app/src/main/java/com/example/movies_db/ui/viewmodel/SearchViewModel.kt
Description:
- Combine
query text, genre selection, year, and rating sliders into a single MovieFilter object.
- Debounce the search input (300ms) to avoid API spam.
- Trigger the Repository search and handle the
Resource states (Loading/Success/Error/Empty) seamlessly in the UI.
Difficulty: Hard
Location:
app/src/main/java/com/example/movies_db/ui/viewmodel/SearchViewModel.ktDescription:
querytext,genreselection,year, andratingsliders into a singleMovieFilterobject.Resourcestates (Loading/Success/Error/Empty) seamlessly in the UI.