52 lines
1.5 KiB
C#
52 lines
1.5 KiB
C#
using ModVersionChecker.data.model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text.Json.Serialization;
|
|
using System.Threading.Tasks;
|
|
|
|
public class AppConfig
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public string Id { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("name")]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("msfsVersions")]
|
|
public List<string> MsfsVersions { get; set; } = new List<string> { "msfs2024" }; // Default to msfs2024
|
|
|
|
|
|
[JsonPropertyName("source")]
|
|
public string Source { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("params")]
|
|
public Dictionary<string, string> Params { get; set; } = new Dictionary<string, string>();
|
|
|
|
[JsonPropertyName("fsFields")]
|
|
public Dictionary<string, Dictionary<string, string>> FsFields { get; set; } = new Dictionary<string, 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")]
|
|
public AppStatus Status { get; set; } = AppStatus.None;
|
|
|
|
[JsonPropertyName("createdAt")]
|
|
public long CreatedAt { get; set; } = 0;
|
|
|
|
[JsonPropertyName("updatedAt")]
|
|
public long UpdatedAt { get; set; } = 0;
|
|
|
|
[JsonPropertyName("lastCheckedAt")]
|
|
public long LastCheckedAt { get; set; } = 0;
|
|
|
|
}
|