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) {