Newsbot.Collector/Newsbot.Collector.Domain/Interfaces/ISubscriptionsRepository.cs

18 lines
606 B
C#
Raw Normal View History

2023-06-25 21:02:26 -07:00
using Newsbot.Collector.Domain.Entities;
using Newsbot.Collector.Domain.Models;
namespace Newsbot.Collector.Domain.Interfaces;
public interface ISubscriptionRepository
{
2023-06-25 21:02:26 -07:00
SubscriptionEntity New(SubscriptionEntity model);
2023-06-25 21:02:26 -07:00
List<SubscriptionEntity> List(int page = 0, int count = 25);
List<SubscriptionEntity> ListBySourceId(Guid id, int page = 0, int count = 25);
List<SubscriptionEntity> ListByWebhook(Guid id, int page = 0, int count = 25);
2023-06-25 21:02:26 -07:00
SubscriptionEntity GetById(Guid id);
SubscriptionEntity GetByWebhookAndSource(Guid webhookId, Guid sourceId);
void Delete(Guid id);
}