feat: modify IMobileControl interface

This commit is contained in:
Andrew Welker
2024-02-28 21:51:03 -06:00
parent 7a5dc29946
commit d6f896c4b2

View File

@@ -12,20 +12,20 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
{ {
} }
/// <summary> /*/// <summary>
/// Describes a MobileControlSystemController /// Describes a MobileControlSystemController
/// </summary> /// </summary>
public interface IMobileControl : IKeyed public interface IMobileControl : IKeyed
{ {
/*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 IMobileControl : IKeyed
{ {
string Host { get; } string Host { get; }
@@ -37,7 +37,7 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
void SendMessageObject(IMobileControlMessage o); void SendMessageObject(IMobileControlMessage o);
void AddAction(string key, Action<string, JToken> action); void AddAction(string key, Action<string, string, JToken> action);
void RemoveAction(string key); void RemoveAction(string key);
@@ -51,9 +51,11 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
/// </summary> /// </summary>
public interface IMobileControlMessenger: IKeyed public interface IMobileControlMessenger: IKeyed
{ {
IMobileControl3 AppServerController { get; } IMobileControl AppServerController { get; }
string MessagePath { get; } string MessagePath { get; }
void RegisterWithAppServer(IMobileControl3 appServerController);
string DeviceKey { get; }
void RegisterWithAppServer(IMobileControl appServerController);
} }
public interface IMobileControlMessage public interface IMobileControlMessage