feat: add GitHubRelease model

This commit is contained in:
rjindael 2023-08-02 03:14:22 -07:00
parent fe816fd2b6
commit f693b6da5e
No known key found for this signature in database
GPG Key ID: D069369C906CCF31
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
namespace Kiseki.Launcher.Models;
using System.Text.Json.Serialization;
public class GitHubRelease
{
[JsonPropertyName("tag_name")]
public string TagName { get; set; } = null!;
[JsonPropertyName("name")]
public string Name { get; set; } = null!;
[JsonPropertyName("body")]
public string Body { get; set; } = null!;
[JsonPropertyName("created_at")]
public string CreatedAt { get; set; } = null!;
[JsonPropertyName("assets")]
public List<GitHubReleaseAsset>? Assets { get; set; }
}
public class GitHubReleaseAsset
{
[JsonPropertyName("browser_download_url")]
public string BrowserDownloadUrl { get; set; } = null!;
[JsonPropertyName("name")]
public string Name { get; set; } = null!;
}