mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 12:37:07 +00:00
feat: adds methods to IMobileControl3 and adds response message interface
This commit is contained in:
parent
9c7777fbaa
commit
9d71810e04
1 changed files with 29 additions and 9 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using PepperDash.Core;
|
using PepperDash.Core;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
|
namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
|
||||||
{
|
{
|
||||||
|
|
@ -11,14 +12,33 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
|
||||||
void CreateMobileControlRoomBridge(IEssentialsRoom room, IMobileControl parent);
|
void CreateMobileControlRoomBridge(IEssentialsRoom room, IMobileControl parent);
|
||||||
|
|
||||||
void LinkSystemMonitorToAppServer();
|
void LinkSystemMonitorToAppServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Describes a MobileSystemController that accepts IEssentialsRoom
|
/// Describes a MobileSystemController that accepts IEssentialsRoom
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IMobileControl3 : IMobileControl
|
public interface IMobileControl3 : IMobileControl
|
||||||
{
|
{
|
||||||
void CreateMobileControlRoomBridge(IEssentialsRoom room, IMobileControl parent);
|
void CreateMobileControlRoomBridge(IEssentialsRoom room, IMobileControl parent);
|
||||||
|
|
||||||
|
void SendMessageObject(object o);
|
||||||
|
|
||||||
|
void AddAction(string key, object action);
|
||||||
|
|
||||||
|
void RemoveAction(string key);
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface IMobileControlResponseMessage
|
||||||
|
{
|
||||||
|
[JsonProperty("type")]
|
||||||
|
public string Type { get; }
|
||||||
|
|
||||||
|
[JsonProperty("clientId")]
|
||||||
|
public object ClientId { get; }
|
||||||
|
|
||||||
|
[JsonProperty("content")]
|
||||||
|
public object Content { get; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue