Exemple #1
0
        static private SensorData ConvertToBusiness(SensorDataFile value)
        {
            SensorData result = new SensorData();

            result.IdSensor   = value.Id;
            result.SensorName = value.SensorName;
            foreach (int idMeasureUnit in value.IdMeasuresUnits)
            {
                result.AddColumn(MeasureUnitSerializer.Get(idMeasureUnit));
            }

            return(result);
        }