This commit is contained in:
Jose Conde
2025-09-29 16:02:00 +02:00
parent dc57da8136
commit 5e16f781b4
74 changed files with 1621 additions and 1856 deletions

View File

@@ -0,0 +1,49 @@
using ModVersionChecker.enums;
using System.Text.Json.Serialization;
public class App
{
public App() { }
[JsonPropertyName("id")]
public string Id { get; set; } = string.Empty;
[JsonPropertyName("uid")]
public string Uid { get; set; } = string.Empty;
[JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;
[JsonPropertyName("type")]
public string Type { get; set; } = string.Empty;
[JsonPropertyName("source")]
public string Source { get; set; } = string.Empty;
[JsonPropertyName("params")]
public Dictionary<string, string> Params { get; set; } = new Dictionary<string, string>();
[JsonPropertyName("fields")]
public Dictionary<string, string> Fields { get; set; } = new Dictionary<string, string>();
[JsonPropertyName("downloadUrl")]
public string DownloadUrl { get; set; } = string.Empty;
[JsonPropertyName("currentVersion")]
public string CurrentVersion { get; set; } = string.Empty;
[JsonPropertyName("latestVersion")]
public string LatestVersion { get; set; } = string.Empty;
[JsonPropertyName("status")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public AppStatus Status { get; set; } = AppStatus.NONE;
[JsonPropertyName("lastCheckedAt")]
public long LastCheckedAt { get; set; } = 0;
[JsonPropertyName("localCheckedAt ")]
public long LocalCheckedAt { get; set; } = 0;
}