ThinkingHome.DeviceModel.FluentApi
ThinkingHome.DeviceModel.FluentApi.Properties
AirQualityHandle Struct
Хендл свойства «индекс качества воздуха» (AirQualityProperty).
csharp
public readonly struct AirQualityHandleMethods
AirQualityHandle.DescribeAsync(CancellationToken) Method
Discovery: описание свойства или null, если его (или устройства) нет.
csharp
public System.Threading.Tasks.Task<ThinkingHome.DeviceModel.Properties.AirQualityProperty?> DescribeAsync(System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));Parameters
ct System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<AirQualityProperty>
AirQualityHandle.GetAsync(CancellationToken) Method
Текущее значение или null, если свойства/значения нет.
csharp
public System.Threading.Tasks.Task<System.Nullable<ThinkingHome.DeviceModel.AirQuality>> GetAsync(System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));Parameters
ct System.Threading.CancellationToken