Skip to content

ThinkingHome.Alice

ThinkingHome.Alice.Model

DeviceState Class

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

csharp
public class DeviceState

Inheritance System.Object → DeviceState

Properties

DeviceState.Capabilities Property

Состояния способностей устройства.

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

Property Value

CapabilityStateBase[]

DeviceState.ErrorCode Property

Код ошибки, если состояние устройства получить не удалось.

csharp
public string ErrorCode { get; set; }

Property Value

System.String

DeviceState.ErrorMessage Property

Текстовое описание ошибки.

csharp
public string ErrorMessage { get; set; }

Property Value

System.String

DeviceState.Id Property

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

csharp
public string Id { get; set; }

Property Value

System.String

DeviceState.Properties Property

Состояния свойств устройства.

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

Property Value

PropertyStateBase[]

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