mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
feat: refactor messaging interfaces and remove subscription support from IMobileControlMessengerWithSubscriptions
This commit is contained in:
parent
b945ecb470
commit
aae41b5947
10 changed files with 60 additions and 121 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue