Skip to content

Instantly share code, notes, and snippets.

@arildojr7
Created November 22, 2021 19:08
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 arildojr7/381a7f7ed57fa5214706053eaf7661a0 to your computer and use it in GitHub Desktop.
Save arildojr7/381a7f7ed57fa5214706053eaf7661a0 to your computer and use it in GitHub Desktop.
sealed class TunerState(open val note: NotesEnum, val bgColor: Color) {
class Down(override val note: NotesEnum) : TunerState(note, OutOfTuneColor)
class Tuned(override val note: NotesEnum) : TunerState(note, TunedColor)
class Up(override val note: NotesEnum) : TunerState(note, OutOfTuneColor)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment