Esempio n. 1
0
        public async Task ElevateSecurityAsync()
        {
            await PublishEventAsync("SECURITY", "ELEVATE");

            _eventHistory.RecordEvent(DeviceEvent.Of("SECURITY", "ELEVATE"));
        }
Esempio n. 2
0
        public async Task ReduceSecurityAsync()
        {
            await PublishEventAsync("SECURITY", "REDUCE");

            _eventHistory.RecordEvent(DeviceEvent.Of("SECURITY", "REDUCE"));
        }
Esempio n. 3
0
        public async Task DisarmAsync()
        {
            await PublishEventAsync("ARM", "DISARM");

            _eventHistory.RecordEvent(DeviceEvent.Of("ARM", "DISARM"));
        }