예제 #1
0
 /// <summary>
 /// When this state is sent to the bridge, sets the current alert of the light.
 /// </summary>
 /// <returns>This LightStateBuilder instance, for method chaining.</returns>
 public LightStateBuilder Alert(LightAlert alert)
 {
     AddOrUpdateProperty("alert", alert.ToString().ToLower());
     return this;
 }
예제 #2
0
 /// <summary>
 /// When this state is sent to the bridge, sets the current alert of the light.
 /// </summary>
 /// <returns>This LightStateBuilder instance, for method chaining.</returns>
 public LightStateBuilder Alert(LightAlert alert)
 {
     AddOrUpdateProperty("alert", alert.ToString().ToLower());
     return(this);
 }