Exemple #1
0
 public static LightStatus ToLightStatus(this LightStatusResponse lsr, ILightDevice lightDevice)
 {
     return(new LightStatus(
                lightDevice,
                lsr.State == 1,
                lsr.ToLightColor()));
 }
Exemple #2
0
 public LightStatus(ILightDevice lightDevice, bool isOn, LightColor color)
 {
     LightDevice = lightDevice;
     IsOn        = isOn;
     Color       = color;
 }