refactor: add UpdateAppUrl method to RoomMessenger interface

Also renamed the interface to more accurately represent what it is for
This commit is contained in:
Andrew Welker
2024-02-08 09:26:29 -06:00
parent f7cf854965
commit 420ae8c7de
3 changed files with 6 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
/// <summary>
/// Describes a MobileControl Room Bridge
/// </summary>
public interface IMobileControlRoomBridge : IKeyed
public interface IMobileControlRoomMessenger : IKeyed
{
event EventHandler<EventArgs> UserCodeChanged;
@@ -85,5 +85,7 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
string RoomName { get; }
string AppUrl { get; }
void UpdateAppUrl(string url);
}
}

View File

@@ -58,7 +58,7 @@ namespace PepperDash.Essentials.Core
/// <summary>
/// The bridge for this room if Mobile Control is enabled
/// </summary>
public IMobileControlRoomBridge MobileControlRoomBridge { get; private set; }
public IMobileControlRoomMessenger MobileControlRoomBridge { get; private set; }
/// <summary>
/// The config name of the source list
@@ -209,7 +209,7 @@ namespace PepperDash.Essentials.Core
}
else
{
MobileControlRoomBridge = mcBridge as IMobileControlRoomBridge;
MobileControlRoomBridge = mcBridge as IMobileControlRoomMessenger;
Debug.Console(1, this, "*********************Mobile Control Bridge found and enabled for this room");
IsMobileControlEnabled = true;
}

View File

@@ -23,7 +23,7 @@ namespace PepperDash.Essentials.Core
BoolFeedback IsCoolingDownFeedback { get; }
bool IsMobileControlEnabled { get; }
IMobileControlRoomBridge MobileControlRoomBridge { get; }
IMobileControlRoomMessenger MobileControlRoomBridge { get; }
string SourceListKey { get; }