Task OnDevicesCollectionChanged(HideezMiddleware.IPC.Messages.DevicesCollectionChangedMessage obj) { foreach (HideezMiddleware.IPC.DTO.DeviceDTO device in obj.Devices) { if (device.CanLockPyProximity) { ChangeIconState(false); return(Task.CompletedTask); } } return(Task.CompletedTask); }
public Task DevicesCollectionChanged(HideezMiddleware.IPC.Messages.DevicesCollectionChangedMessage message) { _log.WriteLine($"Paired devices collection changed. Count: {message.Devices.Length}"); SendMessage(new Messages.DevicesCollectionChangedMessage(message.Devices)); return(Task.CompletedTask); }