Exemple #1
0
 private static string GenerateAdapterName(NEEOConf conf)
 {
     if (conf.Name == "neeo-deviceadapter")
     {
         return(conf.Name);
     }
     return("src-" + ValidationModule.GetUniqueName(conf.Name));
 }
Exemple #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>();
        }