Table of Contents

Class DeviceSample

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

Represents a sensor reading within an Airthings device.

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

Constructors

DeviceSample()

public DeviceSample()

Properties

SensorType

Gets or sets the type of the sensor.

public string SensorType { get; set; }

Property Value

string

Value

Gets or sets the sensor reading value.

public double Value { get; set; }

Property Value

double

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(DeviceSample?)

public bool Equals(DeviceSample? other)

Parameters

other DeviceSample

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(DeviceSample?, DeviceSample?)

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

Parameters

left DeviceSample
right DeviceSample

Returns

bool

operator !=(DeviceSample?, DeviceSample?)

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

Parameters

left DeviceSample
right DeviceSample

Returns

bool