-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65d61a5
commit 951f136
Showing
1 changed file
with
80 additions
and
80 deletions.
There are no files selected for viewing
160 changes: 80 additions & 80 deletions
160
osu.Game.Rulesets.Karaoke/Online/API/Requests/Responses/KaraokeChangelogBuild.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,80 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Online.API.Requests.Responses | ||
{ | ||
public class KaraokeChangelogBuild | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <param name="organization">Account or organization name</param> | ||
/// <param name="project">Project name</param> | ||
/// <param name="branch">Branch name</param> | ||
public KaraokeChangelogBuild(string organization, string project, string branch = "master") | ||
{ | ||
OrganizationName = organization; | ||
ProjectName = project; | ||
Branch = branch; | ||
Versions = new VersionNavigation(); | ||
} | ||
|
||
/// <summary> | ||
/// Organization name | ||
/// </summary> | ||
public string OrganizationName { get; } | ||
|
||
/// <summary> | ||
/// Project name | ||
/// </summary> | ||
public string ProjectName { get; } | ||
|
||
/// <summary> | ||
/// Branch name | ||
/// </summary> | ||
public string Branch { get; } | ||
|
||
/// <summary> | ||
/// The URL of the loaded document. | ||
/// </summary> | ||
public string DocumentUrl => $"https://raw.githubusercontent.com/{OrganizationName}/{ProjectName}/{Branch}/{Path}/"; | ||
|
||
/// <summary> | ||
/// The base URL for all root-relative links. | ||
/// </summary> | ||
public string RootUrl { get; set; } | ||
|
||
/// <summary> | ||
/// Path of the project | ||
/// </summary> | ||
public string Path { get; set; } | ||
|
||
/// <summary> | ||
/// Path to download readme url | ||
/// </summary> | ||
public string ReadmeDownloadUrl => $"{DocumentUrl}README.md"; | ||
|
||
/// <summary> | ||
/// Display version | ||
/// </summary> | ||
public string DisplayVersion { get; set; } | ||
|
||
/// <summary> | ||
/// Version | ||
/// </summary> | ||
public VersionNavigation Versions { get; } | ||
|
||
public class VersionNavigation | ||
{ | ||
/// <summary> | ||
/// Next version | ||
/// </summary> | ||
public KaraokeChangelogBuild Next { get; set; } | ||
|
||
/// <summary> | ||
/// Previous version | ||
/// </summary> | ||
public KaraokeChangelogBuild Previous { get; set; } | ||
} | ||
} | ||
} | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Online.API.Requests.Responses | ||
{ | ||
public class KaraokeChangelogBuild | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <param name="organization">Account or organization name</param> | ||
/// <param name="project">Project name</param> | ||
/// <param name="branch">Branch name</param> | ||
public KaraokeChangelogBuild(string organization, string project, string branch = "master") | ||
{ | ||
OrganizationName = organization; | ||
ProjectName = project; | ||
Branch = branch; | ||
Versions = new VersionNavigation(); | ||
} | ||
|
||
/// <summary> | ||
/// Organization name | ||
/// </summary> | ||
public string OrganizationName { get; } | ||
|
||
/// <summary> | ||
/// Project name | ||
/// </summary> | ||
public string ProjectName { get; } | ||
|
||
/// <summary> | ||
/// Branch name | ||
/// </summary> | ||
public string Branch { get; } | ||
|
||
/// <summary> | ||
/// The URL of the loaded document. | ||
/// </summary> | ||
public string DocumentUrl => $"https://raw.githubusercontent.com/{OrganizationName}/{ProjectName}/{Branch}/{Path}/"; | ||
|
||
/// <summary> | ||
/// The base URL for all root-relative links. | ||
/// </summary> | ||
public string RootUrl { get; set; } | ||
|
||
/// <summary> | ||
/// Path of the project | ||
/// </summary> | ||
public string Path { get; set; } | ||
|
||
/// <summary> | ||
/// Path to download readme url | ||
/// </summary> | ||
public string ReadmeDownloadUrl => $"{DocumentUrl}README.md"; | ||
|
||
/// <summary> | ||
/// Display version | ||
/// </summary> | ||
public string DisplayVersion { get; set; } | ||
|
||
/// <summary> | ||
/// Version | ||
/// </summary> | ||
public VersionNavigation Versions { get; } | ||
|
||
public class VersionNavigation | ||
{ | ||
/// <summary> | ||
/// Next version | ||
/// </summary> | ||
public KaraokeChangelogBuild Next { get; set; } | ||
|
||
/// <summary> | ||
/// Previous version | ||
/// </summary> | ||
public KaraokeChangelogBuild Previous { get; set; } | ||
} | ||
} | ||
} |