public static DataPointRealValueDto ConverFrom(DataPointRealValue dataPoint) { DataPointRealValueDto dto = new DataPointRealValueDto(); if (dataPoint != null) { dto.DataPointNumber = dataPoint.DataPointNumber; dto.DataPointRealTimeValue = dataPoint.DataPointRealTimeValue; dto.ValueToSet = dataPoint.ValueToSet; } return(dto); }
public static DataPointRealValue ConverFrom(DataPoint dataPoint) { DataPointRealValue dpvValue = new DataPointRealValue(); if (dataPoint != null) { dpvValue.DataPointNumber = dataPoint.Number; dpvValue.DataPointRealTimeValue = dataPoint.RealTimeValue; dpvValue.ValueToSet = dataPoint.ValueToSet; } return(dpvValue); }