Table of Contents

Class Device

Namespace
Tudormobile.Airthings.Service
Assembly
Airthings.Service.dll

Represents an Airthings device with its basic information.

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

Constructors

Device()

public Device()

Properties

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

SerialNumber

Gets or sets the unique serial number of the device.

public string SerialNumber { get; set; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(Device?)

public bool Equals(Device? other)

Parameters

other Device

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

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