private void When_I_unflash_the_device() { _successful = true; for (var device = 0; device < _blyncClient.NumberOfDevices; device++) { _successful &= _blyncClient.SetFlash(device, false); } }
private void SetFlash(IEnumerable <int> deviceIds, bool enable) { foreach (var deviceId in deviceIds) { _blyncClient.SetFlash(deviceId, enable); } }
private void ProcessFlash(BlyncClient blyncClient, Options options) { var enable = options.Flash ?? false; foreach (var device in options.Device) { blyncClient.SetFlash(Int32.Parse(device), enable); } }