From aee8d32f61b3f48beec0f8148e350264063b4755 Mon Sep 17 00:00:00 2001 From: Toastie Date: Sat, 21 Sep 2024 14:57:09 +1200 Subject: [PATCH] Fixed some service names --- .../Modules/Searches/Search/DefaultSearchServiceFactory.cs | 2 +- .../Modules/Searches/Search/Google/GoogleSearchService.cs | 2 +- .../Modules/Searches/Search/GoogleScrape/GoogleScrapeService.cs | 2 +- .../Modules/Searches/Search/Searx/SearxSearchService.cs | 2 +- .../Modules/Searches/Search/Youtube/InvidiousYtSearchService.cs | 2 +- .../Searches/Search/Youtube/YoutubeDataApiSearchService.cs | 2 +- .../Modules/Searches/Search/Youtube/YtdlYoutubeSearchService.cs | 2 +- .../Searches/Search/Youtube/YtdlpYoutubeSearchService.cs | 2 +- src/EllieBot/Modules/Searches/SearchesService.cs | 2 +- .../Searches/StreamNotification/StreamNotificationService.cs | 2 +- .../StreamNotification/StreamOnlineMessageDeleterService.cs | 2 +- src/EllieBot/Modules/Searches/Translate/TranslateService.cs | 2 +- src/EllieBot/Modules/Searches/YoutubeTrack/YtTrackService.cs | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/EllieBot/Modules/Searches/Search/DefaultSearchServiceFactory.cs b/src/EllieBot/Modules/Searches/Search/DefaultSearchServiceFactory.cs index bfc22d4..fa3c634 100644 --- a/src/EllieBot/Modules/Searches/Search/DefaultSearchServiceFactory.cs +++ b/src/EllieBot/Modules/Searches/Search/DefaultSearchServiceFactory.cs @@ -3,7 +3,7 @@ using EllieBot.Modules.Searches.Youtube; namespace EllieBot.Modules.Searches; -public sealed class DefaultSearchServiceFactory : ISearchServiceFactory, INService +public sealed class DefaultSearchServiceFactory : ISearchServiceFactory, IEService { private readonly SearchesConfigService _scs; private readonly SearxSearchService _sss; diff --git a/src/EllieBot/Modules/Searches/Search/Google/GoogleSearchService.cs b/src/EllieBot/Modules/Searches/Search/Google/GoogleSearchService.cs index 563012d..c74d746 100644 --- a/src/EllieBot/Modules/Searches/Search/Google/GoogleSearchService.cs +++ b/src/EllieBot/Modules/Searches/Search/Google/GoogleSearchService.cs @@ -2,7 +2,7 @@ namespace EllieBot.Modules.Searches; -public sealed class GoogleSearchService : SearchServiceBase, INService +public sealed class GoogleSearchService : SearchServiceBase, IEService { private readonly IBotCredsProvider _creds; private readonly IHttpClientFactory _httpFactory; diff --git a/src/EllieBot/Modules/Searches/Search/GoogleScrape/GoogleScrapeService.cs b/src/EllieBot/Modules/Searches/Search/GoogleScrape/GoogleScrapeService.cs index 2cb9e0f..8c20767 100644 --- a/src/EllieBot/Modules/Searches/Search/GoogleScrape/GoogleScrapeService.cs +++ b/src/EllieBot/Modules/Searches/Search/GoogleScrape/GoogleScrapeService.cs @@ -4,7 +4,7 @@ using MorseCode.ITask; namespace EllieBot.Modules.Searches.GoogleScrape; -public sealed class GoogleScrapeService : SearchServiceBase, INService +public sealed class GoogleScrapeService : SearchServiceBase, IEService { private static readonly HtmlParser _googleParser = new(new() { diff --git a/src/EllieBot/Modules/Searches/Search/Searx/SearxSearchService.cs b/src/EllieBot/Modules/Searches/Search/Searx/SearxSearchService.cs index 780c985..5d8ecc6 100644 --- a/src/EllieBot/Modules/Searches/Search/Searx/SearxSearchService.cs +++ b/src/EllieBot/Modules/Searches/Search/Searx/SearxSearchService.cs @@ -5,7 +5,7 @@ using System.Text.Json; namespace EllieBot.Modules.Searches; -public sealed class SearxSearchService : SearchServiceBase, INService +public sealed class SearxSearchService : SearchServiceBase, IEService { private readonly IHttpClientFactory _http; private readonly SearchesConfigService _scs; diff --git a/src/EllieBot/Modules/Searches/Search/Youtube/InvidiousYtSearchService.cs b/src/EllieBot/Modules/Searches/Search/Youtube/InvidiousYtSearchService.cs index 93ebe03..17bd519 100644 --- a/src/EllieBot/Modules/Searches/Search/Youtube/InvidiousYtSearchService.cs +++ b/src/EllieBot/Modules/Searches/Search/Youtube/InvidiousYtSearchService.cs @@ -3,7 +3,7 @@ using System.Net.Http.Json; namespace EllieBot.Modules.Searches; -public sealed class InvidiousYtSearchService : IYoutubeSearchService, INService +public sealed class InvidiousYtSearchService : IYoutubeSearchService, IEService { private readonly IHttpClientFactory _http; private readonly SearchesConfigService _scs; diff --git a/src/EllieBot/Modules/Searches/Search/Youtube/YoutubeDataApiSearchService.cs b/src/EllieBot/Modules/Searches/Search/Youtube/YoutubeDataApiSearchService.cs index d82387a..e8bfcd2 100644 --- a/src/EllieBot/Modules/Searches/Search/Youtube/YoutubeDataApiSearchService.cs +++ b/src/EllieBot/Modules/Searches/Search/Youtube/YoutubeDataApiSearchService.cs @@ -1,6 +1,6 @@ namespace EllieBot.Modules.Searches.Youtube; -public sealed class YoutubeDataApiSearchService : IYoutubeSearchService, INService +public sealed class YoutubeDataApiSearchService : IYoutubeSearchService, IEService { private readonly IGoogleApiService _gapi; diff --git a/src/EllieBot/Modules/Searches/Search/Youtube/YtdlYoutubeSearchService.cs b/src/EllieBot/Modules/Searches/Search/Youtube/YtdlYoutubeSearchService.cs index ececc4b..3ac59f8 100644 --- a/src/EllieBot/Modules/Searches/Search/Youtube/YtdlYoutubeSearchService.cs +++ b/src/EllieBot/Modules/Searches/Search/Youtube/YtdlYoutubeSearchService.cs @@ -1,6 +1,6 @@ namespace EllieBot.Modules.Searches.Youtube; -public sealed class YtdlYoutubeSearchService : YoutubedlxServiceBase, INService +public sealed class YtdlYoutubeSearchService : YoutubedlxServiceBase, IEService { public override async Task SearchAsync(string query) => await InternalGetInfoAsync(query, false); diff --git a/src/EllieBot/Modules/Searches/Search/Youtube/YtdlpYoutubeSearchService.cs b/src/EllieBot/Modules/Searches/Search/Youtube/YtdlpYoutubeSearchService.cs index 9eca5a7..d7e66fa 100644 --- a/src/EllieBot/Modules/Searches/Search/Youtube/YtdlpYoutubeSearchService.cs +++ b/src/EllieBot/Modules/Searches/Search/Youtube/YtdlpYoutubeSearchService.cs @@ -1,6 +1,6 @@ namespace EllieBot.Modules.Searches.Youtube; -public sealed class YtdlpYoutubeSearchService : YoutubedlxServiceBase, INService +public sealed class YtdlpYoutubeSearchService : YoutubedlxServiceBase, IEService { public override async Task SearchAsync(string query) => await InternalGetInfoAsync(query, true); diff --git a/src/EllieBot/Modules/Searches/SearchesService.cs b/src/EllieBot/Modules/Searches/SearchesService.cs index 5767240..039b574 100644 --- a/src/EllieBot/Modules/Searches/SearchesService.cs +++ b/src/EllieBot/Modules/Searches/SearchesService.cs @@ -7,7 +7,7 @@ using System.Text.Json; namespace EllieBot.Modules.Searches.Services; -public class SearchesService : INService +public class SearchesService : IEService { public enum ImageTag { diff --git a/src/EllieBot/Modules/Searches/StreamNotification/StreamNotificationService.cs b/src/EllieBot/Modules/Searches/StreamNotification/StreamNotificationService.cs index 2ad4546..9870c13 100644 --- a/src/EllieBot/Modules/Searches/StreamNotification/StreamNotificationService.cs +++ b/src/EllieBot/Modules/Searches/StreamNotification/StreamNotificationService.cs @@ -7,7 +7,7 @@ using EllieBot.Modules.Searches.Common.StreamNotifications; namespace EllieBot.Modules.Searches.Services; -public sealed class StreamNotificationService : INService, IReadyExecutor +public sealed class StreamNotificationService : IEService, IReadyExecutor { private readonly DbService _db; private readonly IBotStrings _strings; diff --git a/src/EllieBot/Modules/Searches/StreamNotification/StreamOnlineMessageDeleterService.cs b/src/EllieBot/Modules/Searches/StreamNotification/StreamOnlineMessageDeleterService.cs index 8ea24d6..ae51752 100644 --- a/src/EllieBot/Modules/Searches/StreamNotification/StreamOnlineMessageDeleterService.cs +++ b/src/EllieBot/Modules/Searches/StreamNotification/StreamOnlineMessageDeleterService.cs @@ -7,7 +7,7 @@ using EllieBot.Modules.Searches.Common; namespace EllieBot.Modules.Searches.Services; -public sealed class StreamOnlineMessageDeleterService : INService, IReadyExecutor +public sealed class StreamOnlineMessageDeleterService : IEService, IReadyExecutor { private readonly StreamNotificationService _notifService; private readonly DbService _db; diff --git a/src/EllieBot/Modules/Searches/Translate/TranslateService.cs b/src/EllieBot/Modules/Searches/Translate/TranslateService.cs index ab1a463..9f50615 100644 --- a/src/EllieBot/Modules/Searches/Translate/TranslateService.cs +++ b/src/EllieBot/Modules/Searches/Translate/TranslateService.cs @@ -8,7 +8,7 @@ using System.Net; namespace EllieBot.Modules.Searches; -public sealed class TranslateService : ITranslateService, IExecNoCommand, IReadyExecutor, INService +public sealed class TranslateService : ITranslateService, IExecNoCommand, IReadyExecutor, IEService { private readonly IGoogleApiService _google; private readonly DbService _db; diff --git a/src/EllieBot/Modules/Searches/YoutubeTrack/YtTrackService.cs b/src/EllieBot/Modules/Searches/YoutubeTrack/YtTrackService.cs index 9b20fee..6cbe065 100644 --- a/src/EllieBot/Modules/Searches/YoutubeTrack/YtTrackService.cs +++ b/src/EllieBot/Modules/Searches/YoutubeTrack/YtTrackService.cs @@ -1,6 +1,6 @@ #nullable disable -// public class YtTrackService : INService +// public class YtTrackService : IEService // { // private readonly IGoogleApiService _google; // private readonly IHttpClientFactory httpClientFactory;