2018-07-20 01:07:24 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Online.API.Requests.Responses
|
|
|
|
|
{
|
|
|
|
|
public class APIChangelog
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("id")]
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("version")]
|
|
|
|
|
public string Version { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("display_version")]
|
|
|
|
|
public string DisplayVersion { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("users")]
|
|
|
|
|
public long Users { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("is_featured")]
|
|
|
|
|
public bool IsFeatured { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("created_at")]
|
2018-07-21 09:19:30 +08:00
|
|
|
|
public DateTimeOffset CreatedAt { get; set; }
|
2018-07-20 01:07:24 +08:00
|
|
|
|
|
|
|
|
|
[JsonProperty("update_stream")]
|
|
|
|
|
public UpdateStream UpdateStream { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("changelog_entries")]
|
2018-07-21 05:14:05 +08:00
|
|
|
|
public List<ChangelogEntry> ChangelogEntries { get; set; }
|
2018-07-20 17:20:01 +08:00
|
|
|
|
|
|
|
|
|
[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")]
|
2018-07-21 05:57:46 +08:00
|
|
|
|
public long? Id { get; set; }
|
2018-07-20 17:20:01 +08:00
|
|
|
|
|
|
|
|
|
[JsonProperty("repository")]
|
|
|
|
|
public string Repository { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("github_pull_request_id")]
|
2018-07-21 05:57:46 +08:00
|
|
|
|
public long? GithubPullRequestId { get; set; }
|
2018-07-20 17:20:01 +08:00
|
|
|
|
|
|
|
|
|
[JsonProperty("github_url")]
|
|
|
|
|
public string GithubUrl { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("url")]
|
2018-07-21 05:57:46 +08:00
|
|
|
|
public string Url { get; set; }
|
2018-07-20 17:20:01 +08:00
|
|
|
|
|
|
|
|
|
[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")]
|
2018-07-21 05:57:46 +08:00
|
|
|
|
public bool? Major { get; set; }
|
2018-07-20 17:20:01 +08:00
|
|
|
|
|
|
|
|
|
[JsonProperty("created_at")]
|
2018-07-21 05:57:46 +08:00
|
|
|
|
public DateTimeOffset? CreatedAt { get; set; }
|
2018-07-20 17:20:01 +08:00
|
|
|
|
|
|
|
|
|
[JsonProperty("github_user")]
|
|
|
|
|
public GithubUser GithubUser { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-20 18:33:44 +08:00
|
|
|
|
public class GithubUser
|
2018-07-20 17:20:01 +08:00
|
|
|
|
{
|
|
|
|
|
[JsonProperty("id")]
|
2018-07-21 05:57:46 +08:00
|
|
|
|
public long? Id { get; set; }
|
2018-07-20 17:20:01 +08:00
|
|
|
|
|
|
|
|
|
[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; }
|
2018-07-20 01:07:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class UpdateStream
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("id")]
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("name")]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("display_name")]
|
|
|
|
|
public string DisplayName { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|