using System;
namespace Rssdp
{
    /// 
    /// Event arguments for the  and  events.
    /// 
    public sealed class DeviceEventArgs : EventArgs
    {
        #region Fields
        private readonly SsdpDevice _Device;
        #endregion
        #region Constructors
        /// 
        /// Constructs a new instance for the specified .
        /// 
        /// The  associated with the event this argument class is being used for.
        /// Thrown if the  argument is null.
        public DeviceEventArgs(SsdpDevice device)
        {
            if (device == null) throw new ArgumentNullException(nameof(device));
            _Device = device;
        }
        #endregion
        #region Public Properties
        /// 
        /// Returns the  instance the event being raised for.
        /// 
        public SsdpDevice Device
        {
            get { return _Device; }
        }
        #endregion
    }
}