Class SummarySample
- Namespace
- Tudormobile.Airthings.Proxy
- Assembly
- Tudormobile.Airthings.dll
Represents a summary of samples for a specific device.
public sealed record SummarySample : IEquatable<SummarySample>
- Inheritance
-
SummarySample
- Implements
- Inherited Members
Constructors
SummarySample()
public SummarySample()
Properties
BatteryPercentage
Gets or sets the battery percentage of the device.
public int BatteryPercentage { get; set; }
Property Value
Home
Gets or sets the name of the home or location the device is assigned to.
public string Home { get; init; }
Property Value
Humidity
Gets or sets the latest humidity level measured by the device.
public double Humidity { get; init; }
Property Value
Name
Gets or sets the display name of the device.
public string Name { get; init; }
Property Value
Radon
Gets or sets the latest radon short-term average level measured by the device.
public double Radon { get; init; }
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
Temperature
Gets or sets the latest temperature measured by the device.
public double Temperature { get; init; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(SummarySample?)
public bool Equals(SummarySample? other)
Parameters
otherSummarySample
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(SummarySample?, SummarySample?)
public static bool operator ==(SummarySample? left, SummarySample? right)
Parameters
leftSummarySamplerightSummarySample
Returns
operator !=(SummarySample?, SummarySample?)
public static bool operator !=(SummarySample? left, SummarySample? right)
Parameters
leftSummarySamplerightSummarySample