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>
|
|
|
|
/// The base URL for the website.
|
|
|
|
/// </summary>
|
2024-01-30 17:40:17 +08:00
|
|
|
public string WebsiteRootUrl { get; set; } = string.Empty;
|
2020-12-24 17:11:40 +08:00
|
|
|
|
2020-12-24 16:58:38 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The endpoint for the main (osu-web) API.
|
|
|
|
/// </summary>
|
2024-01-30 17:40:17 +08:00
|
|
|
public string APIEndpointUrl { get; set; } = string.Empty;
|
2020-12-24 16:58:38 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The OAuth client secret.
|
|
|
|
/// </summary>
|
2024-01-30 17:40:17 +08:00
|
|
|
public string APIClientSecret { get; set; } = string.Empty;
|
2020-12-24 16:58:38 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The OAuth client ID.
|
|
|
|
/// </summary>
|
2024-01-30 17:40:17 +08:00
|
|
|
public string APIClientID { get; set; } = string.Empty;
|
2020-12-24 16:58:38 +08:00
|
|
|
|
2020-12-24 17:11:40 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The endpoint for the SignalR spectator server.
|
|
|
|
/// </summary>
|
2024-01-30 17:40:17 +08:00
|
|
|
public string SpectatorEndpointUrl { get; set; } = string.Empty;
|
2020-12-24 16:58:38 +08:00
|
|
|
|
2020-12-24 17:11:40 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The endpoint for the SignalR multiplayer server.
|
|
|
|
/// </summary>
|
2024-01-30 17:40:17 +08:00
|
|
|
public string MultiplayerEndpointUrl { get; set; } = string.Empty;
|
2022-07-04 16:18:33 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The endpoint for the SignalR metadata server.
|
|
|
|
/// </summary>
|
2024-01-30 17:40:17 +08:00
|
|
|
public string MetadataEndpointUrl { get; set; } = string.Empty;
|
2020-12-24 16:58:38 +08:00
|
|
|
}
|
|
|
|
}
|