Example #1
0
 public DevicePar(DeviceType.TYPE type, string manufacturer, string name, string[] tokens)
 {
     Type         = type;
     Manufacturer = manufacturer;
     Name         = name;
     Tokens       = tokens;
 }
Example #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>();
        }
Example #3
0
 public static bool DeviceTypeDoesNotSupportTiming(DeviceType.TYPE type)
 {
     return(DeviceType.DoesNotSupportTiming(type));
 }
Example #4
0
 public static bool DeviceTypeNeedsInputCommand(DeviceType.TYPE type)
 {
     return(DeviceType.NeedsInputCommand(type));
 }
Example #5
0
 public DeviceBuilder SetType(DeviceType.TYPE type)
 {
     _type = type; return(this);
 }