using CareFusion.Lib.StorageSystem.Attributes;
using CareFusion.Lib.StorageSystem.Wwks2.Types;
using Rowa.Mosaic.Shared.Converters;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Xml.Serialization;

namespace CareFusion.Lib.StorageSystem.Wwks2.Messages.Input
{
    /// <summary>
    /// Class which represents the WWKS 2.0 InputResponse message envelope.
    /// </summary>
    [XmlType(TypeName = "WWKS")]
    public class InputResponseEnvelope : EnvelopeBase
    {
        [XmlElement]
        public InputResponse InputResponse { get; set; }
    }

    /// <summary>
    /// Class which represents the WWKS 2.0 InputResponse message.
    /// </summary>
    public class InputResponse : MessageBase
    {
        #region Properties

        [XmlAttribute]
        [UserSelectableProperty(propertyType: typeof(bool))]
        public string IsNewDelivery { get; set; }

        [XmlElement]
        public List<Article> Article { get; set; }

        #endregion
    }
}