Created
November 22, 2021 16:12
-
-
Save vikingosegundo/f8b4a0d4a568eb3dddd4474b3f8dd0ae 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
struct Light:Codable, Equatable, Identifiable { | |
init(id:String, name:String) { self.init(id, name, .off, 0, 0, 0, 0, .slider, [], .unset) } | |
enum Mode:Codable { case unset, hsb, ct } | |
enum Temperature { case mirek(Int) } | |
let id : String | |
let name : String | |
let isOn : Turn | |
let hue : Double | |
let saturation: Double | |
let brightness: Double | |
let ct : Int | |
let modes : [Mode] | |
let selectedMode: Mode | |
let display : Interface | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment