Last active
September 18, 2022 21:53
-
-
Save ReneeVandervelde/415982e69d6a880c1a9c368aeb1da4c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
value class LightType private constructor( | |
private val type: String, | |
) { | |
companion object { | |
val LightBulb = LightType("light_bulb") | |
val LightStrip = LightType("light_strip") | |
val FloodLight = LightType("flood_light") | |
fun values() = arrayOf(LightBulb, LightStrip, FloodLight) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment