Table of Contents

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

int

Home

Gets or sets the name of the home or location the device is assigned to.

public string Home { get; init; }

Property Value

string

Humidity

Gets or sets the latest humidity level measured by the device.

public double Humidity { get; init; }

Property Value

double

Name

Gets or sets the display name of the device.

public string Name { get; init; }

Property Value

string

Radon

Gets or sets the latest radon short-term average level measured by the device.

public double Radon { get; init; }

Property Value

double

Recorded

Gets or sets the date and time when the event was recorded by the device.

public DateTime Recorded { get; set; }

Property Value

DateTime

Temperature

Gets or sets the latest temperature measured by the device.

public double Temperature { get; init; }

Property Value

double

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(SummarySample?)

public bool Equals(SummarySample? other)

Parameters

other SummarySample

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SummarySample?, SummarySample?)

public static bool operator ==(SummarySample? left, SummarySample? right)

Parameters

left SummarySample
right SummarySample

Returns

bool

operator !=(SummarySample?, SummarySample?)

public static bool operator !=(SummarySample? left, SummarySample? right)

Parameters

left SummarySample
right SummarySample

Returns

bool