Newsbot.Collector/Newsbot.Collector.Domain/Interfaces/IDiscordWebHooksRepository.cs

18 lines
570 B
C#
Raw Normal View History

2023-06-23 21:55:56 -07:00
using Newsbot.Collector.Domain.Entities;
namespace Newsbot.Collector.Domain.Interfaces;
public interface IDiscordWebHooksRepository
{
2023-06-23 21:55:56 -07:00
DiscordWebhookEntity New(DiscordWebhookEntity model);
2023-06-23 21:55:56 -07:00
DiscordWebhookEntity GetById(Guid id);
DiscordWebhookEntity GetByUrl(string url);
2023-06-23 21:55:56 -07:00
List<DiscordWebhookEntity> List(int page, int count = 25);
List<DiscordWebhookEntity> ListByServer(string server, int limit);
List<DiscordWebhookEntity> ListByServerAndChannel(string server, string channel, int limit);
int Disable(Guid id);
int Enable(Guid id);
}