Class DevicesSamplesResponse
- Namespace
- Tudormobile.Airthings
- Assembly
- Tudormobile.Airthings.dll
Represents the response from a devices samples request.
public record DevicesSamplesResponse : ApiResponse, IEquatable<ApiResponse>, IEquatable<DevicesSamplesResponse>
- Inheritance
-
DevicesSamplesResponse
- Implements
- Inherited Members
Remarks
Mapping of the Airthings API response.
Constructors
DevicesSamplesResponse()
public DevicesSamplesResponse()
DevicesSamplesResponse(DevicesSamplesResponse)
protected DevicesSamplesResponse(DevicesSamplesResponse original)
Parameters
originalDevicesSamplesResponse
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
HasNext
Gets or sets a value indicating whether additional pages of results are available.
public bool HasNext { get; set; }
Property Value
Results
Gets or sets the collection of sensor readings, one per requested device.
public List<SensorsResponse> Results { get; set; }
Property Value
TotalPages
Gets or sets the total number of pages available for this request.
public int TotalPages { 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(DevicesSamplesResponse?)
public virtual bool Equals(DevicesSamplesResponse? other)
Parameters
otherDevicesSamplesResponse
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 ==(DevicesSamplesResponse?, DevicesSamplesResponse?)
public static bool operator ==(DevicesSamplesResponse? left, DevicesSamplesResponse? right)
Parameters
leftDevicesSamplesResponserightDevicesSamplesResponse
Returns
operator !=(DevicesSamplesResponse?, DevicesSamplesResponse?)
public static bool operator !=(DevicesSamplesResponse? left, DevicesSamplesResponse? right)
Parameters
leftDevicesSamplesResponserightDevicesSamplesResponse