using CareFusion.Mosaic.Interfaces.Messages;
using System.Xml.Serialization;

namespace CareFusion.Mosaic.Converters.Wwks2.Messages.OutputDestination
{

    [XmlType(TypeName = "WWKS")]
    public class OutputDestinationButtonPressedMessageEnvelope : EnvelopeBase
    {
        [XmlElement]
        public OutputDestinationButtonPressedMessage OutputDestinationButtonPressedMessage { get; set; }
    }

    public class OutputDestinationButtonPressedMessage : MessageBase
    {
        #region Properties
        [XmlAttribute]
        public int OutputDestination { get; set; }
        #endregion
        public OutputDestinationButtonPressedMessage()
        {
        }

        public OutputDestinationButtonPressedMessage(MosaicMessage message)
        {
            var response = (Interfaces.Messages.OutputDestination.OutputDestinationButtonPressedMessage)message;

            Id = response.ID;
            Source = response.Source;
            Destination = response.Destination;
            OutputDestination = response.OutputDestination;
        }
    }
}
