コード例 #1
0
 public string MakeCall()
 {
     _phone.SetState(_phone.InCallState);
     return("Success, calling friend...");
 }
コード例 #2
0
 public string TurnOn()
 {
     _phone.SetState(_phone.OnState);
     return("Success, turning on phone...");
 }
コード例 #3
0
 public string HangUpCall()
 {
     _phone.SetState(_phone.OnState);
     return("Success, hanging up phone call...");
 }
コード例 #4
0
 public string TurnOff()
 {
     _phone.SetState(_phone.OffState);
     return("Success, turning phone off...");
 }