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