From b954c84cff56ee3857482c1129e6b7e51214ac8b Mon Sep 17 00:00:00 2001 From: Wayla Date: Fri, 24 Nov 2023 20:30:59 +0200 Subject: [PATCH] removed 'BaseApiUrl' property from interface because its not supposed to be public. --- OsuCollectionDownloader/Services/ChimuService.cs | 4 ++-- .../Services/{NerinyanMirrorService.cs => NerinyanService.cs} | 4 ++-- OsuCollectionDownloader/Services/OsuDirectService.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename OsuCollectionDownloader/Services/{NerinyanMirrorService.cs => NerinyanService.cs} (94%) diff --git a/OsuCollectionDownloader/Services/ChimuService.cs b/OsuCollectionDownloader/Services/ChimuService.cs index 3c2c636..9293d94 100644 --- a/OsuCollectionDownloader/Services/ChimuService.cs +++ b/OsuCollectionDownloader/Services/ChimuService.cs @@ -4,9 +4,9 @@ namespace OsuCollectionDownloader.Services; -internal sealed class ChimuService(HttpClient client) : IMirrorService +internal sealed class ChimuService(HttpClient client) : IBeatmapService { - public string BaseApiUrl => "https://api.chimu.moe/v1"; + private const string BaseApiUrl = "https://api.chimu.moe/v1"; public async Task> DownloadAsync(string filePath, int beatmapSetId, CancellationToken token) { diff --git a/OsuCollectionDownloader/Services/NerinyanMirrorService.cs b/OsuCollectionDownloader/Services/NerinyanService.cs similarity index 94% rename from OsuCollectionDownloader/Services/NerinyanMirrorService.cs rename to OsuCollectionDownloader/Services/NerinyanService.cs index 3a019da..4b7c639 100644 --- a/OsuCollectionDownloader/Services/NerinyanMirrorService.cs +++ b/OsuCollectionDownloader/Services/NerinyanService.cs @@ -7,9 +7,9 @@ namespace OsuCollectionDownloader.Services; -internal class NerinyanMirrorService(HttpClient client) : IMirrorService +internal sealed class NerinyanService(HttpClient client) : IBeatmapService { - public string BaseApiUrl => "https://api.nerinyan.moe"; + private const string BaseApiUrl = "https://api.nerinyan.moe"; public async Task> DownloadAsync(string filePath, int beatmapSetId, CancellationToken token) { diff --git a/OsuCollectionDownloader/Services/OsuDirectService.cs b/OsuCollectionDownloader/Services/OsuDirectService.cs index e851f7d..79944cf 100644 --- a/OsuCollectionDownloader/Services/OsuDirectService.cs +++ b/OsuCollectionDownloader/Services/OsuDirectService.cs @@ -5,9 +5,9 @@ namespace OsuCollectionDownloader.Services; -internal sealed class OsuDirectService(HttpClient client) : IMirrorService +internal sealed class OsuDirectService(HttpClient client) : IBeatmapService { - public string BaseApiUrl => "https://api.osu.direct"; + private const string BaseApiUrl = "https://api.osu.direct"; public async Task> DownloadAsync(string filePath, int beatmapSetId, CancellationToken token) {