From 8883fc329e73a7cf96787db95addeafd70933b42 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Tue, 30 Jan 2024 08:56:43 -0600 Subject: [PATCH] feat: use `Action` instead of `object` for MC handlers --- .../DeviceTypeInterfaces/IMobileControl.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs index ae2826fd..a3d59538 100644 --- a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs +++ b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs @@ -1,5 +1,6 @@ using System; using Newtonsoft.Json; +using Newtonsoft.Json.Linq; using PepperDash.Core; namespace PepperDash.Essentials.Core.DeviceTypeInterfaces @@ -18,12 +19,10 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces /// Describes a MobileSystemController that accepts IEssentialsRoom /// public interface IMobileControl3 : IMobileControl - { - void CreateMobileControlRoomBridge(IEssentialsRoom room, IMobileControl parent); - + { void SendMessageObject(object o); - void AddAction(string key, object action); + void AddAction(string key, Action action); void RemoveAction(string key);