Make SizeInBytes nilable

This commit is contained in:
Timothy Baldridge 2021-11-27 18:38:21 -07:00 committed by GitHub
parent bb3b374375
commit 9ba58e6851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ public class ModFile
[JsonPropertyName("size_kb")] public int SizeKb { get; set; }
[JsonPropertyName("size_in_bytes")] public int SizeInBytes { get; set; }
[JsonPropertyName("size_in_bytes")] public int? SizeInBytes { get; set; }
[JsonPropertyName("changelog_html")] public string ChangelogHtml { get; set; } = "";
@ -50,4 +50,4 @@ public class ModFile
public class ModFiles
{
[JsonPropertyName("files")] public ModFile[] Files { get; set; } = Array.Empty<ModFile>();
}
}