Table of Contents

Class Device

Namespace
Tudormobile.Airthings
Assembly
Tudormobile.Airthings.dll

Represents an Airthings device.

public record Device : IEquatable<Device>
Inheritance
Device
Implements
Inherited Members

Remarks

Mapping of the Airthings API response.

Constructors

Device()

public Device()

Device(Device)

protected Device(Device original)

Parameters

original Device

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Home

Gets or sets the name of the home or location the device is assigned to.

public string Home { get; set; }

Property Value

string

Name

Gets or sets the display name of the device.

public string Name { get; set; }

Property Value

string

Sensors

Gets or sets the collection of sensor identifiers available on this device.

public List<string> Sensors { get; set; }

Property Value

List<string>

SerialNumber

Gets or sets the unique serial number of the device.

public string SerialNumber { get; set; }

Property Value

string

Type

Gets or sets the device type (e.g., WAVE_PLUS).

public string Type { get; set; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(Device?)

public virtual bool Equals(Device? other)

Parameters

other Device

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Device?, Device?)

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

Parameters

left Device
right Device

Returns

bool

operator !=(Device?, Device?)

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

Parameters

left Device
right Device

Returns

bool