Class DeviceSample
- Namespace
- Tudormobile.Airthings.Service
- Assembly
- Airthings.Service.dll
Represents a sensor reading within an Airthings device.
public sealed record DeviceSample : IEquatable<DeviceSample>
- Inheritance
-
DeviceSample
- Implements
- Inherited Members
Constructors
DeviceSample()
public DeviceSample()
Properties
SensorType
Gets or sets the type of the sensor.
public string SensorType { get; set; }
Property Value
Value
Gets or sets the sensor reading value.
public double Value { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(DeviceSample?)
public bool Equals(DeviceSample? other)
Parameters
otherDeviceSample
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(DeviceSample?, DeviceSample?)
public static bool operator ==(DeviceSample? left, DeviceSample? right)
Parameters
leftDeviceSamplerightDeviceSample
Returns
operator !=(DeviceSample?, DeviceSample?)
public static bool operator !=(DeviceSample? left, DeviceSample? right)
Parameters
leftDeviceSamplerightDeviceSample