Pouvoir.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.Xml.Serialization;
  2. namespace Domain.XML_Model
  3. {
  4. [Serializable]
  5. [XmlRoot(ElementName = "pouvoirs")]
  6. public class Pouvoir : BaseEntity
  7. {
  8. [XmlAttribute(AttributeName = "id")]
  9. public string Id { get; set; }
  10. [XmlAttribute(AttributeName = "nom")]
  11. public string? Nom { get; set; }
  12. [XmlAttribute(AttributeName = "discipline")]
  13. public string? Discipline { get; set; }
  14. [XmlAttribute(AttributeName = "seuil")]
  15. public int Seuil { get; set; }
  16. [XmlAttribute(AttributeName = "action")]
  17. public string? Action { get; set; }
  18. [XmlAttribute(AttributeName = "opposé")]
  19. public bool Opposé { get; set; }
  20. [XmlAttribute(AttributeName = "portée")]
  21. public string? Portée { get; set; }
  22. [XmlAttribute(AttributeName = "prolongeable")]
  23. public bool Prolongeable { get; set; }
  24. [XmlAttribute(AttributeName = "description")]
  25. public string? Description { get; set; }
  26. [XmlIgnoreAttribute] public int PouvoirId { get; set; }
  27. }
  28. }