ThinkingHome.DeviceModel.Remoting
ThinkingHome.DeviceModel.Remoting
DeviceHubMethods Class
Имена методов SignalR-контракта между прокси и домашним коннектором. Общие для обеих сторон (ProxyServer вызывает, ProxyClient обрабатывает) — чтобы имена не разъезжались.
csharp
public static class DeviceHubMethodsInheritance System.Object → DeviceHubMethods
Fields
DeviceHubMethods.Execute Field
Прокси → дом: исполнение команды над устройством.
csharp
public const string Execute = "Execute";Field Value
DeviceHubMethods.GenerateLinkingOtp Field
Прокси → дом: сгенерировать и доставить пользователю OTP привязки.
csharp
public const string GenerateLinkingOtp = "GenerateLinkingOtp";Field Value
DeviceHubMethods.GetDevices Field
Прокси → дом: запрос дескрипторов всех устройств.
csharp
public const string GetDevices = "GetDevices";Field Value
DeviceHubMethods.Query Field
Прокси → дом: опрос состояния устройства.
csharp
public const string Query = "Query";Field Value
DeviceHubMethods.Report Field
Дом → прокси: пуш изменения состояния.
csharp
public const string Report = "Report";Field Value
DeviceHubMethods.ValidateLinkingOtp Field
Прокси → дом: проверить OTP привязки.
csharp
public const string ValidateLinkingOtp = "ValidateLinkingOtp";