예제 #1
0
 public async Task <List <ApiResult> > SetPower(bool powerState, float duration = LifxClient.DEFAULT_DURATION)
 {
     if (client == null)
     {
         return(new List <ApiResult>());
     }
     return(await client.SetPower(this, powerState, duration));
 }
예제 #2
0
 /// <summary>
 /// Set power to an explicit state (on/off).
 /// </summary>
 /// <param name="powerState">On or off.</param>
 /// <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> SetPower(PowerState powerState, double duration = LifxClient.DEFAULT_DURATION)
 {
     return(await client.SetPower(this, powerState, duration));
 }