From 610fae972df1d1f1f9e6b8954d3873cc9a2e151c Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Mon, 15 Jan 2024 13:34:51 -0700 Subject: [PATCH] feat: updates to IMobileControl3 and adds IMobileControlResponseMessage --- .../DeviceTypeInterfaces/IMobileControl.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs index bb800b44..8af3acf2 100644 --- a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs +++ b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs @@ -1,4 +1,5 @@ using System; +using Newtonsoft.Json; using PepperDash.Core; namespace PepperDash.Essentials.Core.DeviceTypeInterfaces @@ -19,6 +20,25 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces public interface IMobileControl3 : IMobileControl { 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")] + string Type { get; } + + [JsonProperty("clientId")] + object ClientId { get; } + + [JsonProperty("content")] + object Content { get; } + } ///