1631786ce2
Add push contracts, provider delivery and channel diagnostics. Link email channels to services and document migration and validation. Ref: IT-1074
11 lines
555 B
C#
11 lines
555 B
C#
namespace HrynCo.NotificationService.DAL.Abstract.PushChannels;
|
|
|
|
public interface IPushChannelRepository
|
|
{
|
|
Task<IReadOnlyList<PushChannel>> GetAllAsync(CancellationToken ct = default);
|
|
Task<PushChannel?> GetByIdAsync(Guid id, CancellationToken ct = default);
|
|
Task<PushChannel?> GetActiveForServiceAsync(Guid serviceId, CancellationToken ct = default);
|
|
Task<string?> GetCredentialsAsync(Guid id, CancellationToken ct = default);
|
|
Task SaveAsync(PushChannel channel, string credentialsJson, bool isNew, CancellationToken ct = default);
|
|
}
|