using RGB.NET.Core; using RGB.NET.Devices.CoolerMaster.Helper; namespace RGB.NET.Devices.CoolerMaster { /// /// /// Represents a generic information for a Corsair-. /// public class CoolerMasterRGBDeviceInfo : IRGBDeviceInfo { #region Properties & Fields /// public RGBDeviceType DeviceType { get; } /// public string DeviceName { get; } /// public string Manufacturer => "Cooler Master"; /// public string Model { get; } public object? LayoutMetadata { get; set; } /// /// Gets the of the . /// public CoolerMasterDevicesIndexes DeviceIndex { get; } #endregion #region Constructors /// /// Internal constructor of managed . /// /// The type of the . /// The of the . internal CoolerMasterRGBDeviceInfo(RGBDeviceType deviceType, CoolerMasterDevicesIndexes deviceIndex) { this.DeviceType = deviceType; this.DeviceIndex = deviceIndex; Model = deviceIndex.GetDescription() ?? "Unknown"; DeviceName = DeviceHelper.CreateDeviceName(Manufacturer, Model); } #endregion } }