using RGB.NET.Core;
namespace RGB.NET.Devices.PicoPi
{
///
/// Represents a generic information for a .
///
public class PicoPiRGBDeviceInfo : IRGBDeviceInfo
{
#region Properties & Fields
///
public RGBDeviceType DeviceType { get; }
///
public string DeviceName { get; }
///
public string Manufacturer => "RGB.NET";
///
public string Model { get; }
///
public object? LayoutMetadata { get; set; }
///
/// Gets the Id of the device.
///
public string Id { get; }
///
/// Gets the version of the device firmware.
///
public int Version { get; }
///
/// Gets the channel this device is using.
///
public int Channel { get; }
///
/// Gets the amount of LEDs on this device.
///
public int LedCount { get; }
#endregion
#region Constructors
internal PicoPiRGBDeviceInfo(RGBDeviceType deviceType, string model, string id, int version, int channel, int ledCount)
{
this.DeviceType = deviceType;
this.Model = model;
this.Id = id;
this.Version = version;
this.Channel = channel;
this.LedCount = ledCount;
DeviceName = DeviceHelper.CreateDeviceName(Manufacturer, $"{Model} {id} (Channel {channel})");
}
#endregion
}
}