using CareFusion.Lib.StorageSystem.Stock;
using System;

namespace CareFusion.Lib.StorageSystem.EventArguments
{
    /// <summary>
    /// The PackStored event arguments.
    /// </summary>
    public class PackStoredEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="PackStoredEventArgs"/> class.
        /// </summary>
        /// <param name="articles">The list of articles with the packs that were stored.</param>
        /// <param name="isNewDelivery"><c>true</c> or <c>false</c> wheter the input was a new delivery or not.</param>
        public PackStoredEventArgs(IArticle[] articles, bool isNewDelivery)
        {
            Articles = articles;
            IsNewDelivery = isNewDelivery;
        }

        /// <summary>
        /// Gets the information of the articles and the packs that were stored.
        /// </summary>
        public IArticle[] Articles { get; }

        /// <summary>
        /// Gets <c>true</c> or <c>false</c> wheter the input was a new delivery or not.
        /// </summary>
        public bool IsNewDelivery { get; }
    }
}
