17 lines
558 B
C#
17 lines
558 B
C#
|
using Newsbot.Collector.Domain.Models;
|
||
|
|
||
|
namespace Newsbot.Collector.Domain.Interfaces;
|
||
|
|
||
|
public interface ISubscriptionRepository
|
||
|
{
|
||
|
SubscriptionModel New(SubscriptionModel model);
|
||
|
|
||
|
List<SubscriptionModel> List(int page = 0, int count = 25);
|
||
|
List<SubscriptionModel> ListBySourceID(Guid id, int page = 0, int count = 25);
|
||
|
List<SubscriptionModel> ListByWebhook(Guid id, int page = 0, int count = 25);
|
||
|
|
||
|
SubscriptionModel GetById(Guid id);
|
||
|
SubscriptionModel GetByWebhookAndSource(Guid webhookId, Guid sourceId);
|
||
|
|
||
|
void Delete(Guid id);
|
||
|
}
|