Class SensorsResponse
- Namespace
- Tudormobile.Airthings
- Assembly
- Tudormobile.Airthings.dll
Represents the response from a sensors request for a specific device.
public record SensorsResponse : IEquatable<SensorsResponse>
- Inheritance
-
SensorsResponse
- Implements
- Inherited Members
Constructors
SensorsResponse()
public SensorsResponse()
SensorsResponse(SensorsResponse)
protected SensorsResponse(SensorsResponse original)
Parameters
originalSensorsResponse
Properties
BatteryPercentage
Gets or sets the battery percentage of the device.
public int BatteryPercentage { get; set; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Recorded
Gets or sets the date and time when the event was recorded by the device.
public DateTime Recorded { get; set; }
Property Value
Sensors
Gets or sets the collection of sensor responses associated with the current device.
public List<Sensor> Sensors { get; set; }
Property Value
SerialNumber
Associated device serial number. This is the unique identifier for the device, and can be used to correlate sensor data with devices from the devices endpoint.
public string SerialNumber { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(SensorsResponse?)
public virtual bool Equals(SensorsResponse? other)
Parameters
otherSensorsResponse
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 ==(SensorsResponse?, SensorsResponse?)
public static bool operator ==(SensorsResponse? left, SensorsResponse? right)
Parameters
leftSensorsResponserightSensorsResponse
Returns
operator !=(SensorsResponse?, SensorsResponse?)
public static bool operator !=(SensorsResponse? left, SensorsResponse? right)
Parameters
leftSensorsResponserightSensorsResponse