bloxstrap/Bloxstrap/Models/GithubRelease.cs
2023-01-27 15:26:41 +00:00

33 lines
869 B
C#

using System.Text.Json.Serialization;
using System.Collections.Generic;
namespace Bloxstrap.Models
{
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!;
}
}