Skip to content

ThinkingHome.DeviceModel

ThinkingHome.DeviceModel

DeviceDescriptor Class

Полное описание устройства — то, что драйвер отдаёт при discovery.

csharp
public sealed record DeviceDescriptor : System.IEquatable<ThinkingHome.DeviceModel.DeviceDescriptor>

Inheritance System.Object → DeviceDescriptor

Implements System.IEquatable<DeviceDescriptor>

Properties

DeviceDescriptor.Endpoints Property

Endpoint'ы устройства. Простое устройство имеет один endpoint (Id = 0).

csharp
public System.Collections.Generic.IReadOnlyList<ThinkingHome.DeviceModel.Endpoint> Endpoints { get; init; }

Property Value

System.Collections.Generic.IReadOnlyList<Endpoint>

DeviceDescriptor.Id Property

Стабильный идентификатор, переживающий рестарты.

csharp
public string Id { get; init; }

Property Value

System.String

DeviceDescriptor.Manufacturer Property

Паспортные данные устройства (производитель, модель, версии).

csharp
public ThinkingHome.DeviceModel.DeviceManufacturer? Manufacturer { get; init; }

Property Value

DeviceManufacturer

DeviceDescriptor.Room Property

Комната, где установлено устройство (если известна).

csharp
public string? Room { get; init; }

Property Value

System.String

DeviceDescriptor.Title Property

Человекочитаемое название устройства.

csharp
public string Title { get; init; }

Property Value

System.String

Опубликовано под лицензией MIT