feat: refactor messaging interfaces and remove subscription support from IMobileControlMessengerWithSubscriptions

This commit is contained in:
Neil Dorin 2026-06-26 15:53:51 -06:00
parent b945ecb470
commit aae41b5947
10 changed files with 60 additions and 121 deletions

View file

@ -27,5 +27,11 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
/// </summary>
/// <param name="appServerController"></param>
void RegisterWithAppServer(IMobileControl appServerController);
/// <summary>
/// Unsubscribe a client from this messenger
/// </summary>
/// <param name="clientId">Client ID to remove from subscription list</param>
void UnsubscribeClient(string clientId);
}
}

View file

@ -1,23 +1,14 @@
using System;
using PepperDash.Core;
namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
{
/// <summary>
/// Defines the contract for IMobileControlMessenger
/// Obsolete. Use <see cref="IMobileControlMessenger"/> directly.
/// Subscriptions are now always enabled in MessengerBase.
/// </summary>
[Obsolete("Use IMobileControlMessenger directly. Subscriptions are always enabled.")]
public interface IMobileControlMessengerWithSubscriptions : IMobileControlMessenger
{
/// <summary>
/// Unsubscribe a client from this messenger
/// </summary>
/// <param name="clientId"></param>
void UnsubscribeClient(string clientId);
/// <summary>
/// Register this messenger with the AppServerController
/// </summary>
/// <param name="appServerController">parent for this messenger</param>
/// <param name="enableMessengerSubscriptions">Enable messenger subscriptions</param>
void RegisterWithAppServer(IMobileControl appServerController, bool enableMessengerSubscriptions);
}
}