2020-12-24 16:58:38 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
namespace osu.Game.Online
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Holds configuration for API endpoints.
|
|
|
|
/// </summary>
|
|
|
|
public class EndpointConfiguration
|
|
|
|
{
|
2020-12-24 17:11:40 +08:00
|
|
|
/// <summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
/// The OAuth client secret.
|
2020-12-24 17:11:40 +08:00
|
|
|
/// </summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
public string APIClientSecret { get; set; } = string.Empty;
|
2020-12-24 17:11:40 +08:00
|
|
|
|
2020-12-24 16:58:38 +08:00
|
|
|
/// <summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
/// The OAuth client ID.
|
2020-12-24 16:58:38 +08:00
|
|
|
/// </summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
public string APIClientID { get; set; } = string.Empty;
|
2020-12-24 16:58:38 +08:00
|
|
|
|
|
|
|
/// <summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
/// The base URL for the website. Does not include a trailing slash.
|
2020-12-24 16:58:38 +08:00
|
|
|
/// </summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
public string WebsiteUrl { get; set; } = string.Empty;
|
2020-12-24 16:58:38 +08:00
|
|
|
|
|
|
|
/// <summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
/// The endpoint for the main (osu-web) API. Does not include a trailing slash.
|
2020-12-24 16:58:38 +08:00
|
|
|
/// </summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
public string APIUrl { get; set; } = string.Empty;
|
2020-12-24 16:58:38 +08:00
|
|
|
|
2020-12-24 17:11:40 +08:00
|
|
|
/// <summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
/// The root URL for the service handling beatmap submission. Does not include a trailing slash.
|
2020-12-24 17:11:40 +08:00
|
|
|
/// </summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
public string? BeatmapSubmissionServiceUrl { get; set; }
|
2020-12-24 16:58:38 +08:00
|
|
|
|
2020-12-24 17:11:40 +08:00
|
|
|
/// <summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
/// The endpoint for the SignalR spectator server.
|
2020-12-24 17:11:40 +08:00
|
|
|
/// </summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
public string SpectatorUrl { get; set; } = string.Empty;
|
2022-07-04 16:18:33 +08:00
|
|
|
|
|
|
|
/// <summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
/// The endpoint for the SignalR multiplayer server.
|
2022-07-04 16:18:33 +08:00
|
|
|
/// </summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
public string MultiplayerUrl { get; set; } = string.Empty;
|
2025-02-05 18:48:07 +08:00
|
|
|
|
|
|
|
/// <summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
/// The endpoint for the SignalR metadata server.
|
2025-02-05 18:48:07 +08:00
|
|
|
/// </summary>
|
2025-02-07 16:33:32 +08:00
|
|
|
public string MetadataUrl { get; set; } = string.Empty;
|
2020-12-24 16:58:38 +08:00
|
|
|
}
|
|
|
|
}
|