Create Required attribute and tag properties

This commit is contained in:
Matt Nadareski
2023-08-10 12:09:29 -04:00
parent 1557882fe1
commit fb81fd0243
89 changed files with 316 additions and 155 deletions

View File

@@ -6,23 +6,28 @@ namespace SabreTools.Models.OpenMSX
[XmlRoot("software")]
public class Software
{
[Required]
[XmlElement("title")]
public string Title { get; set; }
public string? Title { get; set; }
[XmlElement("genmsxid")]
public string? GenMSXID { get; set; }
[Required]
[XmlElement("system")]
public string System { get; set; }
public string? System { get; set; }
[Required]
[XmlElement("company")]
public string Company { get; set; }
public string? Company { get; set; }
[Required]
[XmlElement("year")]
public string Year { get; set; }
public string? Year { get; set; }
[Required]
[XmlElement("country")]
public string Country { get; set; }
public string? Country { get; set; }
[XmlElement("dump")]
public Dump[]? Dump { get; set; }