mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
23 lines
751 B
C#
23 lines
751 B
C#
using System.Text;
|
|
using RGB.NET.Core;
|
|
|
|
namespace Artemis.Core
|
|
{
|
|
internal static class RgbDeviceExtensions
|
|
{
|
|
public static string GetDeviceIdentifier(this IRGBDevice rgbDevice)
|
|
{
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.Append(rgbDevice.DeviceInfo.DeviceName);
|
|
builder.Append('-');
|
|
builder.Append(rgbDevice.DeviceInfo.Manufacturer);
|
|
builder.Append('-');
|
|
builder.Append(rgbDevice.DeviceInfo.Model);
|
|
builder.Append('-');
|
|
builder.Append(rgbDevice.DeviceInfo.DeviceType);
|
|
builder.Append('-');
|
|
builder.Append(rgbDevice.DeviceInfo.Lighting);
|
|
return builder.ToString();
|
|
}
|
|
}
|
|
} |