Skip to content

Instantly share code, notes, and snippets.

@rygelouv
Created April 24, 2022 16:24
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 rygelouv/2dfa725491ddde70cc887cbe34f9853e to your computer and use it in GitHub Desktop.
Save rygelouv/2dfa725491ddde70cc887cbe34f9853e to your computer and use it in GitHub Desktop.
sealed class MoviesAction {
data class SearchMovieAction(val query: String): MoviesAction()
data class AddToHistoryAction(val movieId: Int): MoviesAction()
object RefreshMoviesAction: MoviesAction()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment