using System;
namespace OpenMacroBoard.SDK
{
///
/// A device state report.
///
public class DeviceStateReport
{
///
/// Initializes a new instance of the class.
///
/// The device.
/// The connection state.
/// Info about if the device is new or not.
public DeviceStateReport(IDeviceReference deviceReference, bool connected, bool newDevice)
{
DeviceReference = deviceReference ?? throw new ArgumentNullException(nameof(deviceReference));
Connected = connected;
NewDevice = newDevice;
}
///
/// Gets the device reference.
///
public IDeviceReference DeviceReference { get; }
///
/// Gets the connection state.
///
public bool Connected { get; }
///
/// Gets the info if this device is new or not.
///
public bool NewDevice { get; }
}
}