-
-
Notifications
You must be signed in to change notification settings - Fork 112
/
Copy pathScd4xSensorData.cs
42 lines (37 loc) · 1.29 KB
/
Scd4xSensorData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using UnitsNet;
namespace Iot.Device.Scd4x
{
/// <summary>
/// Represents the data obtained from the Scd4x sensor.
/// </summary>
public sealed class Scd4xSensorData
{
/// <summary>
/// Initializes a new instance of the <see cref="Scd4xSensorData" /> class.
/// </summary>
/// <param name="temperature">Temperature measurement.</param>
/// <param name="humidity">Humidity measurement.</param>
/// <param name="co2">CO2 measurment.</param>
internal Scd4xSensorData(Temperature temperature, RelativeHumidity humidity, VolumeConcentration co2)
{
Temperature = temperature;
RelativeHumidity = humidity;
CO2 = co2;
}
/// <summary>
/// Gets a temperature measurement.
/// </summary>
public Temperature Temperature { get; }
/// <summary>
/// Gets a relative humidity measurement.
/// </summary>
public RelativeHumidity RelativeHumidity { get; }
/// <summary>
/// Gets a CO2 measurment.
/// </summary>
public VolumeConcentration CO2 { get; }
}
}