mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:02:55 +08:00
Expand APIChangelog; Normalize its line endings
This commit is contained in:
parent
a857999950
commit
1857c91647
@ -32,6 +32,78 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
|
||||
[JsonProperty("changelog_entries")]
|
||||
public List<object> ChangelogEntries { get; set; }
|
||||
|
||||
[JsonProperty("versions")]
|
||||
public Versions Versions { get; set; }
|
||||
}
|
||||
|
||||
public class Versions
|
||||
{
|
||||
[JsonProperty("next")]
|
||||
public APIChangelog Next { get; set; }
|
||||
|
||||
[JsonProperty("previous")]
|
||||
public APIChangelog Previous { get; set; }
|
||||
}
|
||||
|
||||
public class ChangelogEntry
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public long Id { get; set; }
|
||||
|
||||
[JsonProperty("repository")]
|
||||
public string Repository { get; set; }
|
||||
|
||||
[JsonProperty("github_pull_request_id")]
|
||||
public long GithubPullRequestId { get; set; }
|
||||
|
||||
[JsonProperty("github_url")]
|
||||
public string GithubUrl { get; set; }
|
||||
|
||||
[JsonProperty("url")]
|
||||
public object Url { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
[JsonProperty("category")]
|
||||
public string Category { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonProperty("message_html")]
|
||||
public string MessageHtml { get; set; }
|
||||
|
||||
[JsonProperty("major")]
|
||||
public bool Major { get; set; }
|
||||
|
||||
[JsonProperty("created_at")]
|
||||
public DateTimeOffset CreatedAt { get; set; }
|
||||
|
||||
[JsonProperty("github_user")]
|
||||
public GithubUser GithubUser { get; set; }
|
||||
}
|
||||
|
||||
public partial class GithubUser
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public long Id { get; set; }
|
||||
|
||||
[JsonProperty("display_name")]
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
[JsonProperty("github_url")]
|
||||
public string GithubUrl { get; set; }
|
||||
|
||||
[JsonProperty("osu_username")]
|
||||
public string OsuUsername { get; set; }
|
||||
|
||||
[JsonProperty("user_id")]
|
||||
public long? UserId { get; set; }
|
||||
|
||||
[JsonProperty("user_url")]
|
||||
public string UserUrl { get; set; }
|
||||
}
|
||||
|
||||
public class UpdateStream
|
||||
|
Loading…
Reference in New Issue
Block a user