Beispiel #1
0
        public Refrigerator(bool status, bool superFreezing, bool quickDefrosting, bool vacation, bool childProtection, int temperature, BrigthnessLevel brigthness)
        {
            this.status          = status;
            this.superFreezing   = superFreezing;
            this.quickDefrosting = quickDefrosting;
            this.vacation        = vacation;
            this.childProtection = childProtection;

            if (temperature > -30 & temperature < 8)
            {
                this.temperature = temperature;
            }
            else
            {
                this.temperature = -15;
            }

            this.brigthness = brigthness;
        }
Beispiel #2
0
 public void NormalLightTurn()
 {
     brigthness = BrigthnessLevel.Normal;
 }
Beispiel #3
0
 public void LowLightTurn()
 {
     brigthness = BrigthnessLevel.Low;
 }
Beispiel #4
0
 public void HightLightTurn()
 {
     brigthness = BrigthnessLevel.High;
 }