18 lines
662 B
C#
18 lines
662 B
C#
using Newsbot.Collector.Domain.Entities;
|
|
using Newsbot.Collector.Domain.Models;
|
|
|
|
namespace Newsbot.Collector.Domain.Interfaces;
|
|
|
|
public interface IDiscordNotificationRepository
|
|
{
|
|
DiscordNotificationEntity New(DiscordNotificationEntity model);
|
|
|
|
List<DiscordNotificationEntity> List(int page = 0, int count = 25);
|
|
List<DiscordNotificationEntity> ListBySourceId(Guid id, int page = 0, int count = 25);
|
|
List<DiscordNotificationEntity> ListByWebhook(Guid id, int page = 0, int count = 25);
|
|
|
|
DiscordNotificationEntity GetById(Guid id);
|
|
DiscordNotificationEntity GetByWebhookAndSource(Guid webhookId, Guid sourceId);
|
|
|
|
void Delete(Guid id);
|
|
} |