more [JsonRequired]

This commit is contained in:
Bitl 2024-02-14 19:21:58 -07:00
parent cbc8520de1
commit 0bebb21674
2 changed files with 6 additions and 0 deletions

View File

@ -12,10 +12,13 @@ namespace Novetus.Core
public class ContentProvider
{
[JsonProperty]
[JsonRequired]
public string Name;
[JsonProperty]
[JsonRequired]
public string URL;
[JsonProperty]
[JsonRequired]
public string Icon;
public static ContentProvider[] GetContentProviders()

View File

@ -16,10 +16,13 @@ namespace Novetus.Core
public class PartColor
{
[JsonProperty]
[JsonRequired]
public string ColorName;
[JsonProperty]
[JsonRequired]
public int ColorID;
[JsonProperty]
[JsonRequired]
public string ColorRGB;
public Color ColorObject;
public string ColorGroup;