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
Name
Gets or sets the display name of the device.
public string Name { get; set; }
Property Value
SerialNumber
Gets or sets the unique serial number of the device.
public string SerialNumber { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(Device?)
public bool Equals(Device? other)
Parameters
otherDevice
Returns
GetHashCode()
public override int GetHashCode()
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)