2020-12-24 08:58:38 +00: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.
|
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2020-12-24 08:58:38 +00:00
|
|
|
namespace osu.Game.Online
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Holds configuration for API endpoints.
|
|
|
|
/// </summary>
|
|
|
|
public class EndpointConfiguration
|
|
|
|
{
|
2020-12-24 09:11:40 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The base URL for the website.
|
|
|
|
/// </summary>
|
|
|
|
public string WebsiteRootUrl { get; set; }
|
|
|
|
|
2020-12-24 08:58:38 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The endpoint for the main (osu-web) API.
|
|
|
|
/// </summary>
|
2020-12-24 09:11:40 +00:00
|
|
|
public string APIEndpointUrl { get; set; }
|
2020-12-24 08:58:38 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The OAuth client secret.
|
|
|
|
/// </summary>
|
|
|
|
public string APIClientSecret { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The OAuth client ID.
|
|
|
|
/// </summary>
|
|
|
|
public string APIClientID { get; set; }
|
|
|
|
|
2020-12-24 09:11:40 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The endpoint for the SignalR spectator server.
|
|
|
|
/// </summary>
|
|
|
|
public string SpectatorEndpointUrl { get; set; }
|
2020-12-24 08:58:38 +00:00
|
|
|
|
2020-12-24 09:11:40 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The endpoint for the SignalR multiplayer server.
|
|
|
|
/// </summary>
|
|
|
|
public string MultiplayerEndpointUrl { get; set; }
|
2022-07-04 08:18:33 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The endpoint for the SignalR metadata server.
|
|
|
|
/// </summary>
|
|
|
|
public string MetadataEndpointUrl { get; set; }
|
2020-12-24 08:58:38 +00:00
|
|
|
}
|
|
|
|
}
|