using CareFusion.Lib.StorageSystem.Output;
using System;

namespace CareFusion.Lib.StorageSystem.EventArguments
{
    /// <summary>
    /// The OutputProcessFinished event arguments.
    /// </summary>
    public class OutputProcessFinishedEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="OutputProcessFinishedEventArgs"/> class.
        /// </summary>
        /// <param name="orderNumber">The order number of the output process.</param>
        /// <param name="outputProcess">The output process that has finished execution.</param>
        public OutputProcessFinishedEventArgs(string orderNumber, IOutputProcessInfo outputProcess)
        {
            OrderNumber = orderNumber;
            OutputProcess = outputProcess;
        }

        /// <summary>
        /// Gets the order number of the output process.
        /// </summary>
        public string OrderNumber { get; }

        /// <summary>
        /// Gets the output process that has finished execution.
        /// </summary>
        public IOutputProcessInfo OutputProcess { get; }
    }
}
