Class DeviceSamples
- Namespace
- Tudormobile.Airthings.Service
- Assembly
- Airthings.Service.dll
Represents a sensor within an Airthings device.
public sealed record DeviceSamples : IEquatable<DeviceSamples>
- Inheritance
-
DeviceSamples
- Implements
- Inherited Members
Constructors
DeviceSamples()
public DeviceSamples()
Properties
BatteryPercentage
Gets or sets the battery percentage of the device.
public int BatteryPercentage { get; set; }
Property Value
Recorded
Gets or sets the date and time when the event was recorded by the device.
public DateTime Recorded { get; set; }
Property Value
Samples
Gets or sets the collection of sensor responses associated with the current device.
public List<DeviceSample> Samples { get; set; }
Property Value
SerialNumber
Associated device serial number. This is the unique identifier for the device, and can be used to correlate sensor data with devices from the devices endpoint.
public string SerialNumber { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(DeviceSamples?)
public bool Equals(DeviceSamples? other)
Parameters
otherDeviceSamples
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(DeviceSamples?, DeviceSamples?)
public static bool operator ==(DeviceSamples? left, DeviceSamples? right)
Parameters
leftDeviceSamplesrightDeviceSamples
Returns
operator !=(DeviceSamples?, DeviceSamples?)
public static bool operator !=(DeviceSamples? left, DeviceSamples? right)
Parameters
leftDeviceSamplesrightDeviceSamples