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,18 +6,22 @@ namespace SabreTools.Models.Listxml
[XmlRoot("condition")]
public class Condition
{
[Required]
[XmlAttribute("tag")]
public string Tag { get; set; }
public string? Tag { get; set; }
[Required]
[XmlAttribute("mask")]
public string Mask { get; set; }
public string? Mask { get; set; }
/// <remarks>(eq|ne|gt|le|lt|ge)</remarks>
[Required]
[XmlAttribute("relation")]
public string Relation { get; set; }
public string? Relation { get; set; }
[Required]
[XmlAttribute("value")]
public string Value { get; set; }
public string? Value { get; set; }
#region DO NOT USE IN PRODUCTION