mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
feat: use Action<JToken> instead of object for MC handlers
This commit is contained in:
parent
ab6f1f36f0
commit
8883fc329e
1 changed files with 3 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
using PepperDash.Core;
|
using PepperDash.Core;
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
|
namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
|
||||||
|
|
@ -18,12 +19,10 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
|
||||||
/// 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 SendMessageObject(object o);
|
void SendMessageObject(object o);
|
||||||
|
|
||||||
void AddAction(string key, object action);
|
void AddAction(string key, Action<JToken> action);
|
||||||
|
|
||||||
void RemoveAction(string key);
|
void RemoveAction(string key);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue