NucuCar/NucuCar.Sensors/EnvironmentSensor/Measurement.cs
2019-11-09 19:23:07 +02:00

23 lines
No EOL
647 B
C#

using Iot.Units;
namespace NucuCar.Sensors.EnvironmentSensor
{
public struct Measurement
{
public Temperature Temperature { get; set; }
public double Pressure { get; set; }
public double Humidity { get; set; }
public Measurement(Temperature temperature, double pressure, double humidity) : this()
{
SetMeasurement(temperature, pressure, humidity);
}
public void SetMeasurement(Temperature temperature, double pressure, double humidity)
{
Temperature = temperature;
Pressure = pressure;
Humidity = humidity;
}
}
}