using Newsbot.Collector.Domain.Entities; using Newsbot.Collector.Domain.Models; namespace Newsbot.Collector.Domain.Interfaces; public interface IDiscordNotificationRepository { DiscordNotificationEntity New(DiscordNotificationEntity model); List List(string userId, int page = 0, int count = 25); List ListBySourceId(string userId, Guid id, int page = 0, int count = 25); /// /// This will collect all the records based on the SourceId. /// Background jobs can use this but user facing calls need to define UserId /// /// /// /// /// List ListBySourceId(Guid id, int page = 0, int count = 25); List ListByWebhook(string userId, Guid id, int page = 0, int count = 25); DiscordNotificationEntity GetById(string userId, Guid id); DiscordNotificationEntity GetByWebhookAndSource(string userId, Guid webhookId, Guid sourceId); int Delete(string userId, Guid id); }