public async Task <List <ApiResult> > SetColor(LifxColor color, float duration = LifxClient.DEFAULT_DURATION, bool powerOn = LifxClient.DEFAULT_POWER_ON)
 {
     if (client == null)
     {
         return(new List <ApiResult>());
     }
     return(await client.SetColor(this, color, duration, powerOn));
 }
Beispiel #2
0
 /// <summary>
 /// Set the light to a specific color.
 /// </summary>
 /// <param name="color">The color to set the light to.</param>
 /// <param name="duration">How long in seconds you want the power action to take. Range: 0.0 – 3155760000.0 (100 years).</param>
 /// <param name="powerOn">If true, turn the bulb on if it is not already on.</param>
 /// <returns></returns>
 public async Task <ApiResults> SetColor(LifxColor color, double duration = LifxClient.DEFAULT_DURATION, bool powerOn = LifxClient.DEFAULT_POWER_ON)
 {
     return(await client.SetColor(this, color, duration, powerOn));
 }