Beispiel #1
0
 public Plugin(string name, string description, PluginTypeEnum pluginType, string systemPath, bool active, double version, string company, bool mqtt = false, bool http = false) :
     base(name, description)
 {
     PluginType       = pluginType;
     AssemblyFilepath = systemPath;
     Active           = active;
     AssemblyVersion  = version;
     Company          = new Company(company);
     IsDownloaded     = true;
     MqttSupport      = mqtt;
     HttpSupport      = http;
 }
Beispiel #2
0
 public Device(
     string name,
     string description,
     string ip,
     string manufacturer,
     ConnectionTypeEnum primaryConnection,
     ConnectionTypeEnum secondaryConnection,
     string groupCreator,
     string pluginName,
     PluginTypeEnum?pluginType) :
     base(name, description)
 {
     Ip                  = new IpAddress(ip);
     Company             = new Company(manufacturer);
     PrimaryConnection   = primaryConnection;
     SecondaryConnection = secondaryConnection;
     CreatedBy           = groupCreator;
     PluginName          = pluginName;
     PluginType          = pluginType ?? PluginTypeEnum.None;
 }