Beispiel #1
0
 public DevicePar(DeviceType.TYPE type, string manufacturer, string name, string[] tokens)
 {
     Type         = type;
     Manufacturer = manufacturer;
     Name         = name;
     Tokens       = tokens;
 }
Beispiel #2
0
        internal DeviceBuilder(string name, string uniqueString, ILogger logger)
        {
            _logger = logger;

            _deviceIdentifier       = "apt-" + ValidationModule.GetUniqueName(name, uniqueString);
            _manufacturer           = DEFAULT_MANUFACTURER;
            _type                   = DEFAULT_TYPE;
            _devicename             = name;
            _additionalSearchTokens = new List <string>();
            _buttons                = new List <Parameter>();
            _sensors                = new List <Parameter>();
            _sliders                = new List <Parameter>();
            _switches               = new List <Parameter>();
            _textLabels             = new List <Parameter>();
            _imageUrls              = new List <Parameter>();
            _discovery              = new List <Controller>();
            _deviceCapabilities     = new List <string>();
        }
Beispiel #3
0
 public static bool DeviceTypeDoesNotSupportTiming(DeviceType.TYPE type)
 {
     return(DeviceType.DoesNotSupportTiming(type));
 }
Beispiel #4
0
 public static bool DeviceTypeNeedsInputCommand(DeviceType.TYPE type)
 {
     return(DeviceType.NeedsInputCommand(type));
 }
Beispiel #5
0
 public DeviceBuilder SetType(DeviceType.TYPE type)
 {
     _type = type; return(this);
 }