mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-12 17:48:31 +00:00
37 lines
1001 B
C#
37 lines
1001 B
C#
using System;
|
|
using RGB.NET.Core;
|
|
|
|
namespace RGB.NET.Devices.CoolerMaster.Attributes
|
|
{
|
|
/// <inheritdoc />
|
|
/// <summary>
|
|
/// Specifies the <see cref="T:RGB.NET.Core.RGBDeviceType" /> of a field.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Field)]
|
|
public class DeviceTypeAttribute : Attribute
|
|
{
|
|
#region Properties & Fields
|
|
|
|
/// <summary>
|
|
/// Gets the <see cref="RGBDeviceType"/>.
|
|
/// </summary>
|
|
public RGBDeviceType DeviceType { get; }
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
/// <inheritdoc />
|
|
/// <summary>
|
|
/// Internal constructor of the <see cref="T:RGB.NET.Devices.CoolerMaster.Attributes.DeviceTypeAttribute" /> class.
|
|
/// </summary>
|
|
/// <param name="deviceType">The <see cref="T:RGB.NET.Core.RGBDeviceType" />.</param>
|
|
public DeviceTypeAttribute(RGBDeviceType deviceType)
|
|
{
|
|
this.DeviceType = deviceType;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|