private static string GetModelName(CorsairChannelDeviceType deviceType)
        {
            switch (deviceType)
            {
            case CorsairChannelDeviceType.Invalid:
                return("Invalid");

            case CorsairChannelDeviceType.FanHD:
                return("HD Fan");

            case CorsairChannelDeviceType.FanSP:
                return("SP Fan");

            case CorsairChannelDeviceType.FanLL:
                return("LL Fan");

            case CorsairChannelDeviceType.FanML:
                return("ML Fan");

            case CorsairChannelDeviceType.Strip:
                return("Led Strip");

            case CorsairChannelDeviceType.DAP:
                return("DAP Fan");

            case CorsairChannelDeviceType.Pump:
                return("Pump");

            default:
                throw new ArgumentOutOfRangeException(nameof(deviceType), deviceType, null);
            }
        }
Exemple #2
0
        private static RGBDeviceType GetDeviceType(CorsairChannelDeviceType deviceType)
        {
            switch (deviceType)
            {
            case CorsairChannelDeviceType.Invalid:
                return(RGBDeviceType.Unknown);

            case CorsairChannelDeviceType.FanHD:
            case CorsairChannelDeviceType.FanSP:
            case CorsairChannelDeviceType.FanLL:
            case CorsairChannelDeviceType.FanML:
            case CorsairChannelDeviceType.DAP:
            case CorsairChannelDeviceType.FanQL:
                return(RGBDeviceType.Fan);

            case CorsairChannelDeviceType.Strip:
                return(RGBDeviceType.LedStripe);

            case CorsairChannelDeviceType.Pump:
                return(RGBDeviceType.Cooler);

            default:
                throw new ArgumentOutOfRangeException(nameof(deviceType), deviceType, null);
            }
        }
 /// <summary>
 /// Creates a instance of CorsairChannelDeviceInfo
 /// </summary>
 /// <param name="channelDeviceInfoNative">The native channel device info</param>
 internal CorsairChannelDeviceInfo(CorsairChannelDeviceInfoNative channelDeviceInfoNative)
 {
     native         = channelDeviceInfoNative;
     type           = native.type;
     deviceLedCount = native.deviceLedCount;
 }