mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-07-02 10:38:16 +00:00
refactor: Rename DisplayBaseMessenger to IRoutingSinkWithSwitchingMessenger and update related references
This commit is contained in:
parent
bc70aa629c
commit
dfc1d2bb21
3 changed files with 9 additions and 11 deletions
|
|
@ -6,11 +6,8 @@ using System.Reflection;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
using Crestron.SimplSharp;
|
using Crestron.SimplSharp;
|
||||||
using Crestron.SimplSharp.CrestronDataStore;
|
|
||||||
using Crestron.SimplSharp.CrestronIO;
|
using Crestron.SimplSharp.CrestronIO;
|
||||||
using Crestron.SimplSharp.CrestronLogger;
|
using Crestron.SimplSharp.CrestronLogger;
|
||||||
using Formatting = NewtonsoftJson::Newtonsoft.Json.Formatting;
|
|
||||||
using JsonConvert = NewtonsoftJson::Newtonsoft.Json.JsonConvert;
|
|
||||||
using PdCore = PepperDash.Core.Abstractions;
|
using PdCore = PepperDash.Core.Abstractions;
|
||||||
using PepperDash.Core.Logging;
|
using PepperDash.Core.Logging;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ using PepperDash.Core;
|
||||||
using PepperDash.Core.Logging;
|
using PepperDash.Core.Logging;
|
||||||
using PepperDash.Essentials.AppServer;
|
using PepperDash.Essentials.AppServer;
|
||||||
using PepperDash.Essentials.AppServer.Messengers;
|
using PepperDash.Essentials.AppServer.Messengers;
|
||||||
|
using PepperDash.Essentials.Core;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using DisplayBase = PepperDash.Essentials.Devices.Common.Displays.DisplayBase;
|
using DisplayBase = PepperDash.Essentials.Devices.Common.Displays.DisplayBase;
|
||||||
|
|
||||||
|
|
@ -11,17 +12,17 @@ namespace PepperDash.Essentials.Room.MobileControl
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a DisplayBaseMessenger
|
/// Represents a DisplayBaseMessenger
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DisplayBaseMessenger : MessengerBase
|
public class IRoutingSinkWithSwitchingMessenger : MessengerBase
|
||||||
{
|
{
|
||||||
private readonly DisplayBase display;
|
private readonly IRoutingSinkWithSwitching display;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create an instance of the <see cref="DisplayBaseMessenger"/> class.
|
/// Create an instance of the <see cref="IRoutingSinkWithSwitchingMessenger"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="key"></param>
|
/// <param name="key"></param>
|
||||||
/// <param name="messagePath"></param>
|
/// <param name="messagePath"></param>
|
||||||
/// <param name="device"></param>
|
/// <param name="device"></param>
|
||||||
public DisplayBaseMessenger(string key, string messagePath, DisplayBase device) : base(key, messagePath, device)
|
public IRoutingSinkWithSwitchingMessenger(string key, string messagePath, IRoutingSinkWithSwitching device) : base(key, messagePath, device)
|
||||||
{
|
{
|
||||||
display = device;
|
display = device;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ namespace PepperDash.Essentials
|
||||||
$"{d.Key}-cameraBase-{ck}", (CameraBase)d, mp),
|
$"{d.Key}-cameraBase-{ck}", (CameraBase)d, mp),
|
||||||
predicate: d => d is CameraBase && !(d is IHasCameraControls)
|
predicate: d => d is CameraBase && !(d is IHasCameraControls)
|
||||||
),
|
),
|
||||||
|
|
||||||
new MessengerFactoryEntry(
|
new MessengerFactoryEntry(
|
||||||
typeof(IHasCameraControls),
|
typeof(IHasCameraControls),
|
||||||
(d, mp, ck) => new CameraBaseMessenger<IHasCameraControls>(
|
(d, mp, ck) => new CameraBaseMessenger<IHasCameraControls>(
|
||||||
|
|
@ -116,9 +116,9 @@ namespace PepperDash.Essentials
|
||||||
|
|
||||||
// ── Displays ─────────────────────────────────────────────────────────────
|
// ── Displays ─────────────────────────────────────────────────────────────
|
||||||
new MessengerFactoryEntry(
|
new MessengerFactoryEntry(
|
||||||
typeof(DisplayBase),
|
typeof(IRoutingSinkWithSwitching),
|
||||||
(d, mp, ck) => new DisplayBaseMessenger(
|
(d, mp, ck) => new IRoutingSinkWithSwitchingMessenger(
|
||||||
$"{d.Key}-displayBase-{ck}", mp, (DisplayBase)d)
|
$"{d.Key}-displayBase-{ck}", mp, (IRoutingSinkWithSwitching)d)
|
||||||
),
|
),
|
||||||
new MessengerFactoryEntry(
|
new MessengerFactoryEntry(
|
||||||
typeof(TwoWayDisplayBase),
|
typeof(TwoWayDisplayBase),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue