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

namespace CareFusion.Lib.StorageSystem.EventArguments
{
    /// <summary>
    /// The StateChanged event arguments.
    /// </summary>
    public class StateChangedEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="StateChangedEventArgs"/> class.
        /// </summary>
        /// <param name="state">The component state.</param>
        public StateChangedEventArgs(ComponentState state)
        {
            State = state;
        }

        /// <summary>
        /// Gets the component state.
        /// </summary>
        public ComponentState State { get; }
    }
}
