-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathRazerRGBDeviceInfo.cs
53 lines (40 loc) · 1.5 KB
/
RazerRGBDeviceInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using RGB.NET.Core;
namespace RGB.NET.Devices.Razer;
/// <inheritdoc />
/// <summary>
/// Represents a generic information for a Razer-<see cref="T:RGB.NET.Core.IRGBDevice" />.
/// </summary>
public class RazerRGBDeviceInfo : IRGBDeviceInfo
{
#region Properties & Fields
/// <inheritdoc />
public RGBDeviceType DeviceType { get; }
/// <inheritdoc />
public string DeviceName { get; }
/// <inheritdoc />
public string Manufacturer => "Razer";
/// <inheritdoc />
public string Model { get; }
/// <inheritdoc />
public object? LayoutMetadata { get; set; }
/// <summary>
/// Gets the Razer SDK endpoint type the <see cref="IRGBDevice"/> is addressed through.
/// </summary>
public RazerEndpointType EndpointType { get; }
#endregion
#region Constructors
/// <summary>
/// Internal constructor of managed <see cref="RazerRGBDeviceInfo"/>.
/// </summary>
/// <param name="deviceType">The type of the <see cref="IRGBDevice"/>.</param>
/// <param name="endpointType">The Razer SDK endpoint type the <see cref="IRGBDevice"/> is addressed through.</param>
/// <param name="model">The model of the <see cref="IRGBDevice"/>.</param>
internal RazerRGBDeviceInfo(RGBDeviceType deviceType, RazerEndpointType endpointType, string model)
{
this.DeviceType = deviceType;
this.EndpointType = endpointType;
this.Model = model;
DeviceName = DeviceHelper.CreateDeviceName(Manufacturer, Model);
}
#endregion
}