mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-06 18:20:47 +01:00
13 lines
314 B
C#
13 lines
314 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Needlework.Net.Desktop
|
|
{
|
|
public class GithubRelease
|
|
{
|
|
[JsonPropertyName("tag_name")]
|
|
public string TagName { get; set; } = string.Empty;
|
|
|
|
public bool IsLatest(int version) => int.Parse(TagName.Replace(".", "")) > version;
|
|
}
|
|
}
|