Skip to content

ThinkingHome.Alice

ThinkingHome.Alice.Model

Device Class

Описание устройства в ответе на discovery: тип, способности, свойства.

csharp
public class Device

Inheritance System.Object → Device

Properties

Device.Capabilities Property

Способности устройства — то, чем можно управлять.

csharp
public ThinkingHome.Alice.Model.Capabilities.CapabilityInfoBase[] Capabilities { get; set; }

Property Value

CapabilityInfoBase[]

Device.CustomData Property

Произвольные данные провайдера; Алиса возвращает их как есть в query/action-запросах.

csharp
public object CustomData { get; set; }

Property Value

System.Object

Device.Description Property

Описание устройства.

csharp
public string Description { get; set; }

Property Value

System.String

Device.DeviceInfo Property

Сведения о производителе, модели и версиях устройства.

csharp
public ThinkingHome.Alice.Model.DeviceInfo DeviceInfo { get; set; }

Property Value

DeviceInfo

Device.Id Property

Идентификатор устройства в терминах провайдера.

csharp
public string Id { get; set; }

Property Value

System.String

Device.Name Property

Название устройства.

csharp
public string Name { get; set; }

Property Value

System.String

Device.Properties Property

Свойства устройства — показания сенсоров и события (только чтение).

csharp
public ThinkingHome.Alice.Model.Properties.PropertyInfoBase[] Properties { get; set; }

Property Value

PropertyInfoBase[]

Device.Room Property

Комната, в которой находится устройство.

csharp
public string Room { get; set; }

Property Value

System.String

Device.Type Property

Тип устройства (devices.types.*).

csharp
public ThinkingHome.Alice.Model.DeviceType Type { get; set; }

Property Value

DeviceType

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