-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathIHubController.cs
More file actions
42 lines (36 loc) · 1.03 KB
/
IHubController.cs
File metadata and controls
42 lines (36 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using OpenShock.Serialization.Gateway;
using Semver;
namespace OpenShock.LiveControlGateway.Controllers;
/// <summary>
///
/// </summary>
public interface IHubController : IAsyncDisposable
{
/// <summary>
/// The hub ID, unique across all hubs
/// </summary>
public Guid Id { get; }
/// <summary>
/// Control shockers
/// </summary>
/// <param name="controlCommands"></param>
/// <returns></returns>
public ValueTask Control(List<ShockerCommand> controlCommands);
/// <summary>
/// Turn the captive portal on or off
/// </summary>
/// <param name="enable"></param>
/// <returns></returns>
public ValueTask CaptivePortal(bool enable);
/// <summary>
/// Start an OTA install
/// </summary>
/// <param name="version"></param>
/// <returns></returns>
public ValueTask OtaInstall(SemVersion version);
/// <summary>
/// Disconnect the old connection in favor of the new one
/// </summary>
/// <returns></returns>
public Task DisconnectOld();
}