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
originalProxyResponse
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
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
Samples
Gets or sets the collection of individual sensor summaries, one per device.
public List<SummarySample> Samples { get; set; }
Property Value
Version
Gets or sets the proxy service version.
public string Version { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ApiResponse?)
public override sealed bool Equals(ApiResponse? other)
Parameters
otherApiResponse
Returns
Equals(ProxyResponse?)
public virtual bool Equals(ProxyResponse? other)
Parameters
otherProxyResponse
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ProxyResponse?, ProxyResponse?)
public static bool operator ==(ProxyResponse? left, ProxyResponse? right)
Parameters
leftProxyResponserightProxyResponse
Returns
operator !=(ProxyResponse?, ProxyResponse?)
public static bool operator !=(ProxyResponse? left, ProxyResponse? right)
Parameters
leftProxyResponserightProxyResponse