using CareFusion.Mosaic.Interfaces.Messages.Input;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace CareFusion.Mosaic.Converters.Wwks2.Messages.Input
{
    public class InputMessageArticle : IInputMessageArticle
    {
        /// <inheritdoc/>
        [XmlAttribute]
        public string Id { get; set; }

        /// <inheritdoc/>
        [XmlAttribute]
        public string Name { get; set; }

        /// <inheritdoc/>
        [XmlAttribute]
        public string VirtualId { get; set; }

        /// <inheritdoc/>
        [XmlAttribute]
        public string VirtualName { get; set; }

        /// <inheritdoc/>
        [XmlAttribute]
        public string DosageForm { get; set; }

        /// <inheritdoc/>
        [XmlAttribute]
        public string PackagingUnit { get; set; }

        /// <inheritdoc/>
        [XmlAttribute]
        public uint MaxSubItemQuantity { get; set; }

        /// <inheritdoc/>
        [XmlElement(ElementName = "Pack")]
        public List<InputMessagePack> Packs { get; set; } = new List<InputMessagePack>();
    }
}