feat(sms): NotificationListForm adapter-gated Type selector + per-type recipients (S7)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using ZB.MOM.WW.ScadaBridge.Commons.Types.Enums;
|
||||
|
||||
namespace ZB.MOM.WW.ScadaBridge.CentralUI.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Exposes the set of notification delivery channels that actually have a registered
|
||||
/// delivery adapter, so the Central UI never offers a notification-list Type that the
|
||||
/// central node cannot deliver. The list is derived from the registered
|
||||
/// <see cref="ZB.MOM.WW.ScadaBridge.NotificationOutbox.Delivery.INotificationDeliveryAdapter"/>
|
||||
/// set (each adapter handles a single <see cref="NotificationType"/>) rather than from
|
||||
/// the <see cref="NotificationType"/> enum, so adding/removing an adapter changes the UI
|
||||
/// options automatically.
|
||||
/// </summary>
|
||||
public interface INotificationChannelCatalog
|
||||
{
|
||||
/// <summary>
|
||||
/// The distinct notification channels that have a registered delivery adapter,
|
||||
/// in a stable order. Never empty in a correctly configured central node.
|
||||
/// </summary>
|
||||
IReadOnlyList<NotificationType> SupportedChannels { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user