public CalcEnergyStorageSignalDto([NotNull] string name, int id, double triggerOff, double triggerOn, double value, [NotNull] CalcVariableDto calcVariableDto, StrGuid guid) { TriggerOffPercent = triggerOff / 100; TriggerOnPercent = triggerOn / 100; Name = name; ID = id; Value = value; CalcVariableDto = calcVariableDto; Guid = guid; }
//todo: split in two conditiontypes with the same interface to avoid the can be null mess public CalcTransformationConditionDto([NotNull] string name, int id, [NotNull] CalcVariableDto variableDto, double minValue, double maxValue, StrGuid guid ) { Name = name; ID = id; CalcVariableDto = variableDto; MinValue = minValue; MaxValue = maxValue; Guid = guid; }