2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-03-08 14:50:52 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using Newtonsoft.Json;
|
2017-02-13 15:48:53 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Desktop.Deploy
|
|
|
|
|
{
|
2017-03-09 13:24:16 +08:00
|
|
|
|
public class GitHubRelease
|
2017-02-13 15:48:53 +08:00
|
|
|
|
{
|
|
|
|
|
[JsonProperty(@"id")]
|
|
|
|
|
public int Id;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"tag_name")]
|
|
|
|
|
public string TagName => $"v{Name}";
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"name")]
|
|
|
|
|
public string Name;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"draft")]
|
|
|
|
|
public bool Draft;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"prerelease")]
|
|
|
|
|
public bool PreRelease;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"upload_url")]
|
|
|
|
|
public string UploadUrl;
|
|
|
|
|
}
|
2018-01-05 19:21:19 +08:00
|
|
|
|
}
|