Beispiel #1
0
        public WirehomeDictionary DisableComponent(string uid)
        {
            if (uid == null)
            {
                throw new ArgumentNullException(nameof(uid));
            }

            var result = ProcessComponentMessage(uid, new WirehomeDictionary().WithType(ControlType.Enable));

            _messageBusWrapper.PublishDisabledEvent(uid);

            return(result);
        }
Beispiel #2
0
        public IDictionary <object, object> DisableComponent(string uid)
        {
            if (uid == null)
            {
                throw new ArgumentNullException(nameof(uid));
            }

            var result = ProcessComponentMessage(uid, new Dictionary <object, object>
            {
                ["type"] = ControlType.Disable
            });

            _messageBusWrapper.PublishDisabledEvent(uid);

            return(result);
        }