Table of Contents

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

original DevicesSamplesResponse

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

HasNext

Gets or sets a value indicating whether additional pages of results are available.

public bool HasNext { get; set; }

Property Value

bool

Results

Gets or sets the collection of sensor readings, one per requested device.

public List<SensorsResponse> Results { get; set; }

Property Value

List<SensorsResponse>

TotalPages

Gets or sets the total number of pages available for this request.

public int TotalPages { get; set; }

Property Value

int

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(DevicesSamplesResponse?)

public virtual bool Equals(DevicesSamplesResponse? other)

Parameters

other DevicesSamplesResponse

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 ==(DevicesSamplesResponse?, DevicesSamplesResponse?)

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

Parameters

left DevicesSamplesResponse
right DevicesSamplesResponse

Returns

bool

operator !=(DevicesSamplesResponse?, DevicesSamplesResponse?)

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

Parameters

left DevicesSamplesResponse
right DevicesSamplesResponse

Returns

bool