Newsbot.Collector/Newsbot.Collector.Domain/Interfaces/IDiscordWebHooksRepository.cs
James Tombleson 82dea60126
All checks were successful
continuous-integration/drone/pr Build is passing
Updated DiscordWebHooks to handle userId
2023-07-29 09:44:15 -07:00

21 lines
748 B
C#

using Newsbot.Collector.Domain.Entities;
namespace Newsbot.Collector.Domain.Interfaces;
public interface IDiscordWebHooksRepository
{
DiscordWebhookEntity New(DiscordWebhookEntity model);
DiscordWebhookEntity GetById(string userId, Guid id);
DiscordWebhookEntity GetById(Guid id);
DiscordWebhookEntity GetByUrl(string url);
List<DiscordWebhookEntity> List(int page, int count = 25);
List<DiscordWebhookEntity> ListByUserId(string userId, int page);
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);
}