2019-05-13 16:24:33 +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.
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace osu.Game.Online.API.Requests.Responses
|
|
|
|
{
|
|
|
|
public class APIChangelogEntry
|
|
|
|
{
|
|
|
|
[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 string Url { get; set; }
|
|
|
|
|
|
|
|
[JsonProperty("type")]
|
2019-09-20 01:34:37 +08:00
|
|
|
public ChangelogEntryType Type { get; set; }
|
2019-05-13 16:24:33 +08:00
|
|
|
|
|
|
|
[JsonProperty("category")]
|
|
|
|
public string Category { get; set; }
|
|
|
|
|
|
|
|
[JsonProperty("title")]
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
[JsonProperty("message_html")]
|
|
|
|
public string MessageHtml { get; set; }
|
|
|
|
|
|
|
|
[JsonProperty("major")]
|
2019-06-08 15:45:34 +08:00
|
|
|
public bool Major { get; set; }
|
2019-05-13 16:24:33 +08:00
|
|
|
|
|
|
|
[JsonProperty("created_at")]
|
|
|
|
public DateTimeOffset? CreatedAt { get; set; }
|
|
|
|
|
|
|
|
[JsonProperty("github_user")]
|
|
|
|
public APIChangelogUser GithubUser { get; set; }
|
|
|
|
}
|
2019-09-20 01:34:37 +08:00
|
|
|
|
|
|
|
public enum ChangelogEntryType
|
|
|
|
{
|
|
|
|
Add,
|
2020-12-24 20:28:21 +08:00
|
|
|
Fix,
|
|
|
|
Misc
|
2019-09-20 01:34:37 +08:00
|
|
|
}
|
2019-05-13 16:24:33 +08:00
|
|
|
}
|