mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-31 05:14:51 +00:00
feat: use Action<JToken> instead of object for MC handlers
This commit is contained in:
@@ -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
|
||||
/// </summary>
|
||||
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<JToken> action);
|
||||
|
||||
void RemoveAction(string key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user