Files
ROLAC/API/ROLAC.API/Services/Notifications/IWebPushService.cs
T
Chris Chen b9210f2501
ci-cd-vm / ci-cd (push) Failing after 1m34s
support PWA notification.
2026-06-29 22:20:15 -07:00

14 lines
596 B
C#

namespace ROLAC.API.Services.Notifications;
/// <summary>
/// The Web Push channel — peer to <see cref="IEmailService"/> and <see cref="ILineNotificationService"/>.
/// Resolves every device subscription of the target members and pushes one notification to each,
/// pruning subscriptions the push service reports as gone and writing a NotificationLog per send.
/// </summary>
public interface IWebPushService
{
Task<NotificationResult> SendToMembersAsync(
IReadOnlyCollection<int> memberIds, WebPushPayload payload,
string sentByUserId, CancellationToken ct = default);
}