Exemple #1
0
        private bool TestCommand(IGSCommand gSCommand, string pattern)
        {
            string command = gSCommand.GetCommand();

            command = RemoveWhitespaces(command);
            return(Regex.Match(command, pattern).Success);
        }
Exemple #2
0
 private StringContent GetCommandContent(IGSCommand command)
 {
     return(new StringContent(command.GetCommand(), Encoding.UTF8, "application/json"));
 }