public static JsonCommand ClearExpectBuffer(int timeout, ExpectType expect_type = ExpectType.P2P) { var jc = new JsonCommand(CommandType.ClearExpectBuffer, "", timeout); jc.ExpectType = expect_type; return(jc); }
public static JsonCommand ResetExpectSession(int timeout, ExpectType expect_type = ExpectType.P2P) { var jc = new JsonCommand(CommandType.ResetExpectSession, "", timeout); jc.ExpectType = expect_type; return(jc); }
public static JsonCommand ExpectOutput(string command, string regex_string, int timeout, ExpectType expect_type = ExpectType.P2P) { var jc = new JsonCommand(CommandType.ExpectOutput, command, timeout); jc.RegexString = regex_string; jc.ExpectType = expect_type; return(jc); }
public static JsonCommand RunProgram(string command, int timeout) { var jc = new JsonCommand(CommandType.RunProgram, command, timeout); return(jc); }