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

21 lines
748 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);
DiscordWebhookEntity GetById(string userId, Guid id);
2023-06-23 21:55:56 -07:00
DiscordWebhookEntity GetById(Guid id);
2023-06-23 21:55:56 -07:00
DiscordWebhookEntity GetByUrl(string url);
2023-06-23 21:55:56 -07:00
List<DiscordWebhookEntity> List(int page, int count = 25);
2023-07-23 22:58:25 -07:00
List<DiscordWebhookEntity> ListByUserId(string userId, int page);
2023-06-23 21:55:56 -07:00
List<DiscordWebhookEntity> ListByServer(string server, int limit);
List<DiscordWebhookEntity> ListByServerAndChannel(string userId, string server, string channel, int limit);
int Disable(string userId, Guid id);
int Enable(string userId, Guid id);
}