public IotBase(string name, string type, IotType iotType) { this.name = name == null ? "unknownName" : name.ToLower(); this.type = type == null ? "unknownType" : type.ToLower(); ThisIotType = iotType; this.id = IotActionManager.AddItem(this); }