Skip to content

Commit

Permalink
removed 'BaseApiUrl' property from interface because its not supposed…
Browse files Browse the repository at this point in the history
… to be public.
  • Loading branch information
waylaa committed Nov 24, 2023
1 parent 905ea42 commit b954c84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions OsuCollectionDownloader/Services/ChimuService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Result<bool>> DownloadAsync(string filePath, int beatmapSetId, CancellationToken token)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Result<bool>> DownloadAsync(string filePath, int beatmapSetId, CancellationToken token)
{
Expand Down
4 changes: 2 additions & 2 deletions OsuCollectionDownloader/Services/OsuDirectService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Result<bool>> DownloadAsync(string filePath, int beatmapSetId, CancellationToken token)
{
Expand Down

0 comments on commit b954c84

Please sign in to comment.