Exemplo n.º 1
0
 /// <summary>
 /// Internal constructor of <see cref="DebugRGBDeviceInfo"/>.
 /// </summary>
 /// <param name="deviceType">The <see cref="RGBDeviceType"/> of the device.</param>
 /// <param name="manufacturer">The manufacturer of the device.</param>
 /// <param name="model">The model of the device.</param>
 /// <param name="lighting">The <see cref="RGBDeviceLighting"/> of the device.</param>
 /// <param name="supportsSyncBack">True if the device supports syncback; false if not.</param>
 internal DebugRGBDeviceInfo(RGBDeviceType deviceType, string manufacturer, string model, RGBDeviceLighting lighting, bool supportsSyncBack)
 {
     this.DeviceType       = deviceType;
     this.Manufacturer     = manufacturer;
     this.Model            = model;
     this.Lighting         = lighting;
     this.SupportsSyncBack = supportsSyncBack;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Internal constructor of <see cref="DebugRGBDeviceInfo"/>.
        /// </summary>
        /// <param name="deviceType">The <see cref="RGBDeviceType"/> of the device.</param>
        /// <param name="manufacturer">The manufacturer of the device.</param>
        /// <param name="model">The model of the device.</param>
        /// <param name="lighting">The <see cref="RGBDeviceLighting"/> of the device.</param>
        /// <param name="supportsSyncBack">True if the device supports syncback; false if not.</param>
        internal DebugRGBDeviceInfo(RGBDeviceType deviceType, string manufacturer, string model, RGBDeviceLighting lighting, bool supportsSyncBack, string deviceName = null)
        {
            this.DeviceType       = deviceType;
            this.Manufacturer     = manufacturer;
            this.Model            = model;
            this.Lighting         = lighting;
            this.SupportsSyncBack = supportsSyncBack;

            DeviceName = deviceName ?? $"{Manufacturer} {Model}";
        }