Table of Contents

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

original SensorsResponse

Properties

BatteryPercentage

Gets or sets the battery percentage of the device.

public int BatteryPercentage { get; set; }

Property Value

int

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Recorded

Gets or sets the date and time when the event was recorded by the device.

public DateTime Recorded { get; set; }

Property Value

DateTime

Sensors

Gets or sets the collection of sensor responses associated with the current device.

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

Property Value

List<Sensor>

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

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(SensorsResponse?)

public virtual bool Equals(SensorsResponse? other)

Parameters

other SensorsResponse

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 ==(SensorsResponse?, SensorsResponse?)

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

Parameters

left SensorsResponse
right SensorsResponse

Returns

bool

operator !=(SensorsResponse?, SensorsResponse?)

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

Parameters

left SensorsResponse
right SensorsResponse

Returns

bool