SoftTraderBackend/Interface/IAlertStore.cs
2026-03-20 10:42:48 -04:00

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);
}