19 lines
590 B
C#
19 lines
590 B
C#
|
using Microsoft.VisualBasic;
|
||
|
using Newsbot.Collector.Domain.Models;
|
||
|
|
||
|
namespace Newsbot.Collector.Domain.Interfaces;
|
||
|
|
||
|
public interface IDiscordWebHooksRepository
|
||
|
{
|
||
|
DiscordWebHookModel New(DiscordWebHookModel model);
|
||
|
|
||
|
DiscordWebHookModel GetByID(Guid id);
|
||
|
DiscordWebHookModel GetByUrl(string url);
|
||
|
|
||
|
List<DiscordWebHookModel> List(int page, int count = 25);
|
||
|
List<DiscordWebHookModel> ListByServer(string server, int limit);
|
||
|
List<DiscordWebHookModel> ListByServerAndChannel(string server, string channel, int limit);
|
||
|
|
||
|
int Disable(Guid id);
|
||
|
int Enable(Guid id);
|
||
|
}
|