using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Xml.Serialization;

namespace SoftJail.DataProcessor.ImportDto
{
    [XmlType("Officer")]
    public class ImportOfficerPrisonerDto
    {
        [Required]
        [MinLength(3)]
        [MaxLength(30)]
        [XmlElement("Name")]
        public string FullName { get; set; }
        [Required]
        [Range(typeof(decimal), "0", "79228162514264337593543950335")]
        [XmlElement("Money")]
        public decimal Salary { get; set; }
        [Required]
        public string Position { get; set; }
        [Required]
        public string Weapon { get; set; }
        [XmlElement("DepartmentId")]
        public int DepartmentId { get; set; }

        [XmlArray("Prisoners")]
        public ImportPrisonerDto[] Prisoners { get; set; }
    }
    [XmlType("Prisoner")]
    public class ImportPrisonerDto
    {
        [XmlAttribute("id")]
        public int Id { get; set; }
    }
}

  //< Officer >
  //  < Name > Minerva Kitchingman </ Name >
  //  < Money > 2582 </ Money >
  //  < Position > Invalid </ Position >
  //  < Weapon > ChainRifle </ Weapon >
  //  < DepartmentId > 2 </ DepartmentId >
  //  < Prisoners >
  //    < Prisoner id = "15" />
  //  </ Prisoners >
  //</ Officer >
