support PWA notification.
ci-cd-vm / ci-cd (push) Failing after 1m34s

This commit is contained in:
Chris Chen
2026-06-29 22:20:15 -07:00
parent 45d910b554
commit b9210f2501
32 changed files with 1054 additions and 12 deletions
@@ -0,0 +1,13 @@
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);
}