-
-
Notifications
You must be signed in to change notification settings - Fork 109
/
Copy pathSht4XSensorData.cs
34 lines (30 loc) · 1.05 KB
/
Sht4XSensorData.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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using UnitsNet;
namespace Iot.Device.Sht4x
{
/// <summary>
/// Represents the data obtained from the SHT4x sensor.
/// </summary>
public sealed class Sht4XSensorData
{
/// <summary>
/// Initializes a new instance of the <see cref="Sht4XSensorData" /> class.
/// </summary>
/// <param name="temperature">Temperature measurement.</param>
/// <param name="humidity">Humidity measurement.</param>
internal Sht4XSensorData(Temperature temperature, RelativeHumidity humidity)
{
Temperature = temperature;
RelativeHumidity = humidity;
}
/// <summary>
/// Gets a temperature measurement.
/// </summary>
public Temperature Temperature { get; }
/// <summary>
/// Gets a relative humidity measurement.
/// </summary>
public RelativeHumidity RelativeHumidity { get; }
}
}