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; }
public void NormalLightTurn() { brigthness = BrigthnessLevel.Normal; }
public void LowLightTurn() { brigthness = BrigthnessLevel.Low; }
public void HightLightTurn() { brigthness = BrigthnessLevel.High; }