using CareFusion.Mosaic.Converters.Wwks2.Types;
using CareFusion.Mosaic.Interfaces.Converters;

namespace CareFusion.Mosaic.Interfaces.Messages.Stock
{
    /// <summary>
    /// Class which implements the StockUpdateResponse Mosaic message.
    /// This response returns if the operation was a success or if there was any error and provides a reason for the error
    /// </summary>
    public class StockUpdateResponse: MosaicMessage
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="StockUpdateResponse"/> class.
        /// </summary>
        public StockUpdateResponse() : base(MessageType.StockUpdateResponse)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="StockUpdateResponse"/> class.
        /// </summary>
        /// <param name="converterStream">The converter stream which created the request.</param>
        public StockUpdateResponse(IConverterStream converterStream) : base(MessageType.StockUpdateResponse, converterStream)
        {
        }

        /// <summary>
        /// The Details of the reponse
        /// </summary>
        public Details Details { get; set; }

    }
}
