Beispiel #1
0
        internal static DeviceCapability Build(DeviceBase data, string adapterName, ILogger logger)
        {
            var capability = new DeviceCapability(data, adapterName, logger);

            capability.build();
            return(capability);
        }
Beispiel #2
0
 internal DeviceCapability(DeviceBase data, string adapterName, ILogger logger)
 {
     _buttons          = data._buttons;
     _sliders          = data._sliders;
     _switches         = data._switches;
     _textLabels       = data._textLabels;
     _imageUrls        = data._imageUrls;
     _sensors          = data._sensors;
     _discovery        = data._discovery;
     _deviceIdentifier = data._deviceIdentifier;
     _logger           = logger;
     AdapterName       = adapterName;
     Capabilities      = new List <Component>();
     HandlerMap        = new Dictionary <string, HandlerParameter>();
 }