James Tombleson
82dea60126
All checks were successful
continuous-integration/drone/pr Build is passing
21 lines
748 B
C#
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);
|
|
} |