Beispiel #1
0
 public void BookRoom(RoomContext roomContext)
 {
     Console.WriteLine("房间已经被预订,无法再被预订。。。");
 }
Beispiel #2
0
 public void CheckOutRoom(RoomContext roomContext)
 {
     Console.WriteLine("无此操作。。。");
 }
Beispiel #3
0
 public void UnSubscribeRoom(RoomContext roomContext)
 {
     Console.WriteLine("取消预订房间成功。。。");
     roomContext.State = new FreeTimeState();
 }
Beispiel #4
0
 public void CheckInRoom(RoomContext roomContext)
 {
     Console.WriteLine("入住房间成功。。。");
     roomContext.State = new CheckInState();
 }