Migration to EF and starting to add Identity #11

Merged
jtom38 merged 16 commits from features/ef-identity-migration into main 2023-07-09 22:19:01 -07:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 597470fd69 - Show all commits

View File

@ -2,7 +2,7 @@ using Newsbot.Collector.Domain.Models;
namespace Newsbot.Collector.Domain.Interfaces; namespace Newsbot.Collector.Domain.Interfaces;
public interface IDiscordNotificatioClient public interface IDiscordClient
{ {
void SendMessage(DiscordMessage payload); void SendMessage(DiscordMessage payload);
} }

View File

@ -6,16 +6,16 @@ using Newtonsoft.Json;
namespace Newsbot.Collector.Services.Notifications.Discord; namespace Newsbot.Collector.Services.Notifications.Discord;
public class DiscordWebhookClient : IDiscordNotificatioClient public class DiscordClient : IDiscordClient
{ {
private readonly string[] _webhooks; private readonly string[] _webhooks;
public DiscordWebhookClient(string webhook) public DiscordClient(string webhook)
{ {
_webhooks = new[] { webhook }; _webhooks = new[] { webhook };
} }
public DiscordWebhookClient(string[] webhooks) public DiscordClient(string[] webhooks)
{ {
_webhooks = webhooks; _webhooks = webhooks;
} }