Skip to content

ThinkingHome.DeviceModel.Remoting

ThinkingHome.DeviceModel.Remoting

DeviceHubMethods Class

Имена методов SignalR-контракта между прокси и домашним коннектором. Общие для обеих сторон (ProxyServer вызывает, ProxyClient обрабатывает) — чтобы имена не разъезжались.

csharp
public static class DeviceHubMethods

Inheritance System.Object → DeviceHubMethods

Fields

DeviceHubMethods.Execute Field

Прокси → дом: исполнение команды над устройством.

csharp
public const string Execute = "Execute";

Field Value

System.String

DeviceHubMethods.GenerateLinkingOtp Field

Прокси → дом: сгенерировать и доставить пользователю OTP привязки.

csharp
public const string GenerateLinkingOtp = "GenerateLinkingOtp";

Field Value

System.String

DeviceHubMethods.GetDevices Field

Прокси → дом: запрос дескрипторов всех устройств.

csharp
public const string GetDevices = "GetDevices";

Field Value

System.String

DeviceHubMethods.Query Field

Прокси → дом: опрос состояния устройства.

csharp
public const string Query = "Query";

Field Value

System.String

DeviceHubMethods.Report Field

Дом → прокси: пуш изменения состояния.

csharp
public const string Report = "Report";

Field Value

System.String

DeviceHubMethods.ValidateLinkingOtp Field

Прокси → дом: проверить OTP привязки.

csharp
public const string ValidateLinkingOtp = "ValidateLinkingOtp";

Field Value

System.String

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