Skip to content

Instantly share code, notes, and snippets.

@zsoltk
Last active September 10, 2022 18:52
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 zsoltk/abb6f3878852f179dbe9659a73e1202e to your computer and use it in GitHub Desktop.
Save zsoltk/abb6f3878852f179dbe9659a73e1202e to your computer and use it in GitHub Desktop.
sealed class State {
// Prepared but not displayed yet
data class Queued(val queueNumber: Int) : State()
// Visible below top card
object Bottom : State()
// The main card
object Top : State()
// Final state after the user actually votes on a card
object VoteLike : State()
// Final state after the user actually votes on a card
object VotePass : State()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment