13 lines
601 B
C#
13 lines
601 B
C#
using Backend.DatabaseHandler;
|
|
|
|
namespace Backend.Interface;
|
|
|
|
public interface IAlertStore
|
|
{
|
|
Task<List<AlertRecord>> GetActiveAlertsAsync(CancellationToken cancellationToken = default);
|
|
Task<List<AlertRecord>> GetAlertsByUserAsync(string username, CancellationToken cancellationToken = default);
|
|
Task<AlertRecord> CreateAlertAsync(AlertRecord alert, CancellationToken cancellationToken = default);
|
|
Task<bool> DeleteAlertAsync(string username, long alertId, CancellationToken cancellationToken = default);
|
|
Task UpdateAlertAsync(AlertRecord alert, CancellationToken cancellationToken = default);
|
|
}
|