Exemplo n.º 1
0
        public static JsonCommand ClearExpectBuffer(int timeout, ExpectType expect_type = ExpectType.P2P)
        {
            var jc = new JsonCommand(CommandType.ClearExpectBuffer, "", timeout);

            jc.ExpectType = expect_type;
            return(jc);
        }
Exemplo n.º 2
0
        public static JsonCommand ResetExpectSession(int timeout, ExpectType expect_type = ExpectType.P2P)
        {
            var jc = new JsonCommand(CommandType.ResetExpectSession, "", timeout);

            jc.ExpectType = expect_type;
            return(jc);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        public static JsonCommand RunProgram(string command, int timeout)
        {
            var jc = new JsonCommand(CommandType.RunProgram, command, timeout);

            return(jc);
        }