using Windows.Devices.Lights;
using RGB.NET.Core;
namespace RGB.NET.Devices.DynamicLighting;
///
///
/// Represents a generic information for a DynamicLighting-.
///
public class DynamicLightingRGBDeviceInfo : IRGBDeviceInfo
{
#region Properties & Fields
///
public RGBDeviceType DeviceType { get; }
///
public string DeviceName { get; }
///
public string Manufacturer => "Dynamic Lighting";
///
public string Model { get; }
///
/// Returns the unique ID of the device
///
public string DeviceId { get; }
///
public object? LayoutMetadata { get; set; }
///
/// Gets the amount of LEDs this device contains.
///
public int LedCount { get; }
internal LampArray LampArray { get; }
#endregion
#region Constructors
///
/// Internal constructor of managed .
///
/// The type of the .
/// The low level information for this device.
internal DynamicLightingRGBDeviceInfo(RGBDeviceType deviceType, LampArrayInfo lampArrayInfo)
{
this.DeviceType = deviceType;
LampArray = lampArrayInfo.LampArray;
DeviceId = lampArrayInfo.Id;
Model = lampArrayInfo.DisplayName;
LedCount = lampArrayInfo.LampArray.LampCount;
DeviceName = DeviceHelper.CreateDeviceName(Manufacturer, Model);
}
#endregion
}