Skip to content

Instantly share code, notes, and snippets.

@vikingosegundo
Last active November 24, 2021 19:59
Show Gist options
  • Save vikingosegundo/bf5b30b23e8a2dade11c1e8e07f663d5 to your computer and use it in GitHub Desktop.
Save vikingosegundo/bf5b30b23e8a2dade11c1e8e07f663d5 to your computer and use it in GitHub Desktop.
func turn (_ light:Light, _ onOrOff:Turn ) { rootHandler( .lighting(.turn(light,onOrOff)) ) }
func apply ( values:Light.Values, on light:Light) { rootHandler( .lighting(.apply(.values(values),on:light)) ) }
func increase( value :Light.Value, by inc :Light.Value.Increment, on light:Light) { rootHandler( .lighting(.increase(value,by:inc,on:light)) ) }
func decrease( value :Light.Value, by dec :Light.Value.Increment, on light:Light) { rootHandler( .lighting(.decrease(value,by:dec,on:light)) ) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment