1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-23 22:42:54 +08:00
osu-lazer/osu.Game/Online/EndpointConfiguration.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.7 KiB
C#
Raw Normal View History

// 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
{
/// <summary>
2025-02-07 16:33:32 +08:00
/// The OAuth client secret.
/// </summary>
2025-02-07 16:33:32 +08:00
public string APIClientSecret { get; set; } = string.Empty;
/// <summary>
2025-02-07 16:33:32 +08:00
/// The OAuth client ID.
/// </summary>
2025-02-07 16:33:32 +08:00
public string APIClientID { get; set; } = string.Empty;
/// <summary>
2025-02-07 16:33:32 +08:00
/// The base URL for the website. Does not include a trailing slash.
/// </summary>
2025-02-07 16:33:32 +08:00
public string WebsiteUrl { get; set; } = string.Empty;
/// <summary>
2025-02-07 16:33:32 +08:00
/// The endpoint for the main (osu-web) API. Does not include a trailing slash.
/// </summary>
2025-02-07 16:33:32 +08:00
public string APIUrl { get; set; } = string.Empty;
/// <summary>
2025-02-07 16:33:32 +08:00
/// The root URL for the service handling beatmap submission. Does not include a trailing slash.
/// </summary>
2025-02-07 16:33:32 +08:00
public string? BeatmapSubmissionServiceUrl { get; set; }
/// <summary>
2025-02-07 16:33:32 +08:00
/// The endpoint for the SignalR spectator server.
/// </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;
/// <summary>
2025-02-07 16:33:32 +08:00
/// The endpoint for the SignalR metadata server.
/// </summary>
2025-02-07 16:33:32 +08:00
public string MetadataUrl { get; set; } = string.Empty;
}
}