Files
Needlework.Net/Needlework.Net.Desktop/GithubRelease.cs
2024-08-13 02:37:46 -05:00

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;
}
}