Fixed some service names
This commit is contained in:
parent
a0bd130a5f
commit
aee8d32f61
13 changed files with 13 additions and 13 deletions
|
@ -3,7 +3,7 @@ using EllieBot.Modules.Searches.Youtube;
|
||||||
|
|
||||||
namespace EllieBot.Modules.Searches;
|
namespace EllieBot.Modules.Searches;
|
||||||
|
|
||||||
public sealed class DefaultSearchServiceFactory : ISearchServiceFactory, INService
|
public sealed class DefaultSearchServiceFactory : ISearchServiceFactory, IEService
|
||||||
{
|
{
|
||||||
private readonly SearchesConfigService _scs;
|
private readonly SearchesConfigService _scs;
|
||||||
private readonly SearxSearchService _sss;
|
private readonly SearxSearchService _sss;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace EllieBot.Modules.Searches;
|
namespace EllieBot.Modules.Searches;
|
||||||
|
|
||||||
public sealed class GoogleSearchService : SearchServiceBase, INService
|
public sealed class GoogleSearchService : SearchServiceBase, IEService
|
||||||
{
|
{
|
||||||
private readonly IBotCredsProvider _creds;
|
private readonly IBotCredsProvider _creds;
|
||||||
private readonly IHttpClientFactory _httpFactory;
|
private readonly IHttpClientFactory _httpFactory;
|
||||||
|
|
|
@ -4,7 +4,7 @@ using MorseCode.ITask;
|
||||||
|
|
||||||
namespace EllieBot.Modules.Searches.GoogleScrape;
|
namespace EllieBot.Modules.Searches.GoogleScrape;
|
||||||
|
|
||||||
public sealed class GoogleScrapeService : SearchServiceBase, INService
|
public sealed class GoogleScrapeService : SearchServiceBase, IEService
|
||||||
{
|
{
|
||||||
private static readonly HtmlParser _googleParser = new(new()
|
private static readonly HtmlParser _googleParser = new(new()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@ using System.Text.Json;
|
||||||
|
|
||||||
namespace EllieBot.Modules.Searches;
|
namespace EllieBot.Modules.Searches;
|
||||||
|
|
||||||
public sealed class SearxSearchService : SearchServiceBase, INService
|
public sealed class SearxSearchService : SearchServiceBase, IEService
|
||||||
{
|
{
|
||||||
private readonly IHttpClientFactory _http;
|
private readonly IHttpClientFactory _http;
|
||||||
private readonly SearchesConfigService _scs;
|
private readonly SearchesConfigService _scs;
|
||||||
|
|
|
@ -3,7 +3,7 @@ using System.Net.Http.Json;
|
||||||
|
|
||||||
namespace EllieBot.Modules.Searches;
|
namespace EllieBot.Modules.Searches;
|
||||||
|
|
||||||
public sealed class InvidiousYtSearchService : IYoutubeSearchService, INService
|
public sealed class InvidiousYtSearchService : IYoutubeSearchService, IEService
|
||||||
{
|
{
|
||||||
private readonly IHttpClientFactory _http;
|
private readonly IHttpClientFactory _http;
|
||||||
private readonly SearchesConfigService _scs;
|
private readonly SearchesConfigService _scs;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
namespace EllieBot.Modules.Searches.Youtube;
|
namespace EllieBot.Modules.Searches.Youtube;
|
||||||
|
|
||||||
public sealed class YoutubeDataApiSearchService : IYoutubeSearchService, INService
|
public sealed class YoutubeDataApiSearchService : IYoutubeSearchService, IEService
|
||||||
{
|
{
|
||||||
private readonly IGoogleApiService _gapi;
|
private readonly IGoogleApiService _gapi;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
namespace EllieBot.Modules.Searches.Youtube;
|
namespace EllieBot.Modules.Searches.Youtube;
|
||||||
|
|
||||||
public sealed class YtdlYoutubeSearchService : YoutubedlxServiceBase, INService
|
public sealed class YtdlYoutubeSearchService : YoutubedlxServiceBase, IEService
|
||||||
{
|
{
|
||||||
public override async Task<VideoInfo?> SearchAsync(string query)
|
public override async Task<VideoInfo?> SearchAsync(string query)
|
||||||
=> await InternalGetInfoAsync(query, false);
|
=> await InternalGetInfoAsync(query, false);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
namespace EllieBot.Modules.Searches.Youtube;
|
namespace EllieBot.Modules.Searches.Youtube;
|
||||||
|
|
||||||
public sealed class YtdlpYoutubeSearchService : YoutubedlxServiceBase, INService
|
public sealed class YtdlpYoutubeSearchService : YoutubedlxServiceBase, IEService
|
||||||
{
|
{
|
||||||
public override async Task<VideoInfo?> SearchAsync(string query)
|
public override async Task<VideoInfo?> SearchAsync(string query)
|
||||||
=> await InternalGetInfoAsync(query, true);
|
=> await InternalGetInfoAsync(query, true);
|
||||||
|
|
|
@ -7,7 +7,7 @@ using System.Text.Json;
|
||||||
|
|
||||||
namespace EllieBot.Modules.Searches.Services;
|
namespace EllieBot.Modules.Searches.Services;
|
||||||
|
|
||||||
public class SearchesService : INService
|
public class SearchesService : IEService
|
||||||
{
|
{
|
||||||
public enum ImageTag
|
public enum ImageTag
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,7 +7,7 @@ using EllieBot.Modules.Searches.Common.StreamNotifications;
|
||||||
|
|
||||||
namespace EllieBot.Modules.Searches.Services;
|
namespace EllieBot.Modules.Searches.Services;
|
||||||
|
|
||||||
public sealed class StreamNotificationService : INService, IReadyExecutor
|
public sealed class StreamNotificationService : IEService, IReadyExecutor
|
||||||
{
|
{
|
||||||
private readonly DbService _db;
|
private readonly DbService _db;
|
||||||
private readonly IBotStrings _strings;
|
private readonly IBotStrings _strings;
|
||||||
|
|
|
@ -7,7 +7,7 @@ using EllieBot.Modules.Searches.Common;
|
||||||
|
|
||||||
namespace EllieBot.Modules.Searches.Services;
|
namespace EllieBot.Modules.Searches.Services;
|
||||||
|
|
||||||
public sealed class StreamOnlineMessageDeleterService : INService, IReadyExecutor
|
public sealed class StreamOnlineMessageDeleterService : IEService, IReadyExecutor
|
||||||
{
|
{
|
||||||
private readonly StreamNotificationService _notifService;
|
private readonly StreamNotificationService _notifService;
|
||||||
private readonly DbService _db;
|
private readonly DbService _db;
|
||||||
|
|
|
@ -8,7 +8,7 @@ using System.Net;
|
||||||
|
|
||||||
namespace EllieBot.Modules.Searches;
|
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 IGoogleApiService _google;
|
||||||
private readonly DbService _db;
|
private readonly DbService _db;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
// public class YtTrackService : INService
|
// public class YtTrackService : IEService
|
||||||
// {
|
// {
|
||||||
// private readonly IGoogleApiService _google;
|
// private readonly IGoogleApiService _google;
|
||||||
// private readonly IHttpClientFactory httpClientFactory;
|
// private readonly IHttpClientFactory httpClientFactory;
|
||||||
|
|
Loading…
Reference in a new issue