Exemplo n.º 1
0
            public async Task <AlarmConfiguration> Handle(GetAlarmConfigurationQuery request, CancellationToken cancellationToken)
            {
                var conf = await _deviceController.GetConfiguration(request.DeviceId);

                return(new AlarmConfiguration
                {
                    AccessTime = conf.AccessTime,
                    ArmOnClose = conf.ArmOnClose,
                    LockOnClose = conf.LockOnClose
                });
            }