using Predictalytics.Domain.Entities;

namespace Predictalytics.Domain.Interfaces;

public interface IAlertRepository
{
    Task<IReadOnlyList<Alert>> GetRecentAsync(int count = 50, bool unreadOnly = false, CancellationToken ct = default);
    Task AddAsync(Alert alert, CancellationToken ct = default);
    Task MarkAsReadAsync(int id, CancellationToken ct = default);
    Task<int> GetUnreadCountAsync(CancellationToken ct = default);
}
