Ejemplo n.º 1
0
 /// <summary>
 /// Toggles light power state. As documented here: https://api.developer.lifx.com/docs/toggle-power.
 /// </summary>
 /// <param name="duration">How long in seconds you want the power action to take. Range: 0.0 – 3155760000.0 (100 years).</param>
 /// <returns></returns>
 public async Task <ApiResults> TogglePower(double duration = LifxClient.DEFAULT_DURATION)
 {
     if (client == null)
     {
         return(new ApiResults());
     }
     return(await client.TogglePower(this, duration));
 }
Ejemplo n.º 2
0
 public async Task <List <ApiResult> > TogglePower()
 {
     if (client == null)
     {
         return(new List <ApiResult>());
     }
     return(await client.TogglePower(this));
 }