Esempio n. 1
0
 public DreamScreen4K(BaseDevice curDevice)
 {
     SetDefaults();
     if (curDevice == null)
     {
         throw new ArgumentException("Invalid baseDevice.");
     }
     Id          = curDevice.Id;
     Name        = curDevice.Name;
     IpAddress   = curDevice.IpAddress;
     Brightness  = curDevice.Brightness;
     GroupNumber = curDevice.GroupNumber;
     if (curDevice.flexSetup != null)
     {
         flexSetup = curDevice.flexSetup;
     }
     Saturation   = curDevice.Saturation;
     Mode         = curDevice.Mode;
     AmbientColor = curDevice.AmbientColor;
 }