public void Execute() { this.prevSpeed = this.ceilingFan.GetSpeed(); this.ceilingFan.Medium(); }
public void Low() { this.speed = EnumSpeedCeilingFan.Low; Console.WriteLine($"Setting ceiling fan of the {this.name} to Low"); }
public void High() { this.speed = EnumSpeedCeilingFan.High; Console.WriteLine($"Setting ceiling fan of the {this.name} to Hight"); }
public void Medium() { this.speed = EnumSpeedCeilingFan.Medium; Console.WriteLine($"Setting ceiling fan of the {this.name} to Medium"); }
public void Off() { Console.WriteLine($"{this.name} ceiling fan off"); this.speed = EnumSpeedCeilingFan.Off; }