Table of Contents

Class ProxyResponse

Namespace
Tudormobile.Airthings.Proxy
Assembly
Tudormobile.Airthings.dll

Represents a response from the proxy service containing all summary data retrieved through the proxy service from the Airthings API.

public record ProxyResponse : ApiResponse, IEquatable<ApiResponse>, IEquatable<ProxyResponse>
Inheritance
ProxyResponse
Implements
Inherited Members

Constructors

ProxyResponse()

public ProxyResponse()

ProxyResponse(ProxyResponse)

protected ProxyResponse(ProxyResponse original)

Parameters

original ProxyResponse

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

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 proxy service version.

public string Version { get; set; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ApiResponse?)

public override sealed bool Equals(ApiResponse? other)

Parameters

other ApiResponse

Returns

bool

Equals(ProxyResponse?)

public virtual bool Equals(ProxyResponse? other)

Parameters

other ProxyResponse

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ProxyResponse?, ProxyResponse?)

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

Parameters

left ProxyResponse
right ProxyResponse

Returns

bool

operator !=(ProxyResponse?, ProxyResponse?)

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

Parameters

left ProxyResponse
right ProxyResponse

Returns

bool