using System;
using CareFusion.Lib.StorageSystem.State;

namespace CareFusion.Lib.StorageSystem.EventArguments
{
    /// <summary>
    /// The ComponentStateChanged event arguments.
    /// </summary>
    public class ComponentStateChangedEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ComponentStateChangedEventArgs"/> class.
        /// </summary>
        /// <param name="component">The component that has changed its state.</param>
        public ComponentStateChangedEventArgs(IComponent component)
        {
            Component = component;
        }

        /// <summary>
        /// Gets the component that has changed its state.</param>
        /// </summary>
        public IComponent Component { get; }
    }
}
