예제 #1
0
 static string GetMessage(Commando command)
 {
     if (command.Action == CommandAction.Unidentified)
     {
         return("Command action could not be identified");
     }
     else
     {
         return($"{command.Action} command did not have expected parameters");
     }
 }
예제 #2
0
 public static Responseo CreateResponse(Commando command, CommandDispatchResult result) => new Responseo(command.Source, command.Sequence, result);
예제 #3
0
 public MalformedCommandException(Commando source)
     : base(GetMessage(source))
 {
 }