From 597470fd6996d2e7ca8bd2c827447b59a8270111 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Sun, 9 Jul 2023 21:30:23 -0700 Subject: [PATCH] Renamed the Discord Notification client to help with naming issues --- .../Interfaces/IDiscordNotificationClient.cs | 2 +- .../Discord/{DiscordWebhookClient.cs => DiscordClient.cs} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename Newsbot.Collector.Services/Notifications/Discord/{DiscordWebhookClient.cs => DiscordClient.cs} (90%) diff --git a/Newsbot.Collector.Domain/Interfaces/IDiscordNotificationClient.cs b/Newsbot.Collector.Domain/Interfaces/IDiscordNotificationClient.cs index 864d6a3..57d99ef 100644 --- a/Newsbot.Collector.Domain/Interfaces/IDiscordNotificationClient.cs +++ b/Newsbot.Collector.Domain/Interfaces/IDiscordNotificationClient.cs @@ -2,7 +2,7 @@ using Newsbot.Collector.Domain.Models; namespace Newsbot.Collector.Domain.Interfaces; -public interface IDiscordNotificatioClient +public interface IDiscordClient { void SendMessage(DiscordMessage payload); } \ No newline at end of file diff --git a/Newsbot.Collector.Services/Notifications/Discord/DiscordWebhookClient.cs b/Newsbot.Collector.Services/Notifications/Discord/DiscordClient.cs similarity index 90% rename from Newsbot.Collector.Services/Notifications/Discord/DiscordWebhookClient.cs rename to Newsbot.Collector.Services/Notifications/Discord/DiscordClient.cs index 8559a71..b8f7564 100644 --- a/Newsbot.Collector.Services/Notifications/Discord/DiscordWebhookClient.cs +++ b/Newsbot.Collector.Services/Notifications/Discord/DiscordClient.cs @@ -6,16 +6,16 @@ using Newtonsoft.Json; namespace Newsbot.Collector.Services.Notifications.Discord; -public class DiscordWebhookClient : IDiscordNotificatioClient +public class DiscordClient : IDiscordClient { private readonly string[] _webhooks; - public DiscordWebhookClient(string webhook) + public DiscordClient(string webhook) { _webhooks = new[] { webhook }; } - public DiscordWebhookClient(string[] webhooks) + public DiscordClient(string[] webhooks) { _webhooks = webhooks; }