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

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

            _messageBusWrapper.PublishEnabledEvent(uid);

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

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

            _messageBusWrapper.PublishEnabledEvent(uid);

            return(result);
        }