private void ProcessReset(BlyncClient blyncClient, Options options) { foreach (var device in options.Device) { blyncClient.ResetLight(Int32.Parse(device)); } }
private void SetColor(string lower, IEnumerable <int> deviceIds) { switch (lower) { case "red": SetColor(deviceIds, BlyncClient.Color.Red); break; case "green": SetColor(deviceIds, BlyncClient.Color.Green); break; case "blue": SetColor(deviceIds, BlyncClient.Color.Blue); break; case "cyan": SetColor(deviceIds, BlyncClient.Color.Cyan); break; case "magenta": SetColor(deviceIds, BlyncClient.Color.Magenta); break; case "yellow": SetColor(deviceIds, BlyncClient.Color.Yellow); break; case "white": SetColor(deviceIds, BlyncClient.Color.White); break; case "orange": SetColor(deviceIds, BlyncClient.Color.Orange); break; default: _blyncClient.ResetLight(0); break; } }
private void ResetColor(int device) { _successful &= _blyncClient.ResetLight(device); }