wabbajack/Wabbajack.Networking.NexusApi/DTOs/ModFiles.cs

54 lines
1.8 KiB
C#
Raw Permalink Normal View History

2021-09-27 12:42:46 +00:00
using System;
using System.Text.Json.Serialization;
2021-10-23 16:51:17 +00:00
namespace Wabbajack.Networking.NexusApi.DTOs;
public class ModFile
2021-09-27 12:42:46 +00:00
{
2021-10-23 16:51:17 +00:00
[JsonPropertyName("id")] public int[] Id { get; set; } = Array.Empty<int>();
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("uid")] public object Uid { get; set; } = "";
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("file_id")] public int FileId { get; set; }
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("name")] public string Name { get; set; } = "";
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("version")] public string Version { get; set; } = "";
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("category_id")] public int CategoryId { get; set; }
2021-09-27 12:42:46 +00:00
2022-01-20 14:57:25 +00:00
[JsonPropertyName("category_name")] public string? CategoryName { get; set; } = null;
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("is_primary")] public bool IsPrimary { get; set; }
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("size")] public int Size { get; set; }
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("file_name")] public string FileName { get; set; } = "";
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("uploaded_timestamp")]
public int UploadedTimestamp { get; set; }
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("uploaded_time")] public DateTime UploadedTime { get; set; }
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("mod_version")] public string ModVersion { get; set; } = "";
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("external_virus_scan_url")]
public string ExternalVirusScanUrl { get; set; } = "";
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("description")] public string Description { get; set; } = "";
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("size_kb")] public int SizeKb { get; set; }
2021-09-27 12:42:46 +00:00
2021-11-28 01:39:05 +00:00
[JsonPropertyName("size_in_bytes")] public long? SizeInBytes { get; set; }
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("changelog_html")] public string ChangelogHtml { get; set; } = "";
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
[JsonPropertyName("content_preview_link")]
public string ContentPreviewLink { get; set; } = "";
}
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
public class ModFiles
{
[JsonPropertyName("files")] public ModFile[] Files { get; set; } = Array.Empty<ModFile>();
2021-11-28 01:38:21 +00:00
}