Table of Contents

Class SummarySamples

Namespace
Tudormobile.Airthings.Service
Assembly
Airthings.Service.dll

Represents a summary of the latest sensor readings across all devices, including service metadata.

public sealed record SummarySamples : IEquatable<SummarySamples>
Inheritance
SummarySamples
Implements
Inherited Members

Constructors

SummarySamples()

public SummarySamples()

Properties

LastUpdated

Gets or sets the UTC timestamp indicating when this summary was last populated from the Airthings API.

public DateTimeOffset LastUpdated { get; set; }

Property Value

DateTimeOffset

Samples

Gets or sets the collection of individual sensor summaries, one per device.

public List<SummarySample> Samples { get; set; }

Property Value

List<SummarySample>

Version

Gets or sets the version and metadata of the Airthings Service that produced this response.

public ServiceVersion Version { get; set; }

Property Value

ServiceVersion

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(SummarySamples?)

public bool Equals(SummarySamples? other)

Parameters

other SummarySamples

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SummarySamples?, SummarySamples?)

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

Parameters

left SummarySamples
right SummarySamples

Returns

bool

operator !=(SummarySamples?, SummarySamples?)

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

Parameters

left SummarySamples
right SummarySamples

Returns

bool