Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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