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
originalDevice
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Home
Gets or sets the name of the home or location the device is assigned to.
public string Home { get; set; }
Property Value
Name
Gets or sets the display name of the device.
public string Name { get; set; }
Property Value
Sensors
Gets or sets the collection of sensor identifiers available on this device.
public List<string> Sensors { get; set; }
Property Value
SerialNumber
Gets or sets the unique serial number of the device.
public string SerialNumber { get; set; }
Property Value
Type
Gets or sets the device type (e.g., WAVE_PLUS).
public string Type { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(Device?)
public virtual bool Equals(Device? other)
Parameters
otherDevice
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(Device?, Device?)
public static bool operator ==(Device? left, Device? right)
Parameters
Returns
operator !=(Device?, Device?)
public static bool operator !=(Device? left, Device? right)