コード例 #1
0
 public override void HandleRequest()
 {
     Console.WriteLine("Turning fan on to high...");
     fan.SetState(fan.GetFanHighState());
 }
コード例 #2
0
 public override void HandleRequest()
 {
     Console.WriteLine("Turning fan off...");
     fan.SetState(fan.GetFanOffState());
 }
コード例 #3
0
 public override void HandleRequest()
 {
     Console.WriteLine("Turning fan on to med.");
     fan.SetState(fan.GetFanMedState());
 }