using RGB.NET.Core; namespace RGB.NET.Devices.WLED; /// /// /// Represents a generic information for a WLED-. /// public sealed class WledRGBDeviceInfo : IRGBDeviceInfo { #region Properties & Fields /// public RGBDeviceType DeviceType => RGBDeviceType.LedStripe; /// public string DeviceName { get; } /// public string Manufacturer { get; } /// public string Model { get; } /// public object? LayoutMetadata { get; set; } /// /// Gets some info returned by the WLED-device. /// public WledInfo Info { get; } #endregion #region Constructors /// /// Internal constructor of managed . /// /// The manufacturer of the device. /// The represented device model. internal WledRGBDeviceInfo(WledInfo info, string? manufacturer, string? model) { this.Info = info; this.Manufacturer = manufacturer ?? info.Brand; this.Model = model ?? info.Name; DeviceName = DeviceHelper.CreateDeviceName(Manufacturer, Model); } #endregion }