Table of Contents

Class DevicesResponse

Namespace
Tudormobile.Airthings
Assembly
Tudormobile.Airthings.dll

Represents the response from a list devices request.

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

Remarks

Mapping of the Airthings API response.

Constructors

DevicesResponse()

public DevicesResponse()

DevicesResponse(DevicesResponse)

protected DevicesResponse(DevicesResponse original)

Parameters

original DevicesResponse

Properties

Devices

Gets or sets the collection of devices associated with the requested account.

public List<Device> Devices { get; set; }

Property Value

List<Device>

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

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

public virtual bool Equals(DevicesResponse? other)

Parameters

other DevicesResponse

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

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

Parameters

left DevicesResponse
right DevicesResponse

Returns

bool

operator !=(DevicesResponse?, DevicesResponse?)

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

Parameters

left DevicesResponse
right DevicesResponse

Returns

bool