Beispiel #1
0
        public DialogStepResult(string response, DialogStep nextStep)
        {
            Check.Required<ArgumentNullException>(() => response != null);

            Response = response;
            NextStep = nextStep;
        }
Beispiel #2
0
        public DialogStepResult(string response, DialogStep nextStep)
        {
            Check.Required <ArgumentNullException>(() => response != null);

            Response = response;
            NextStep = nextStep;
        }
Beispiel #3
0
        public async Task<string> Process(IRandomAccessStream image)
        {
            Check.Required<ArgumentNullException>(() => image != null);

            var result = await CurrentStep.Process(image);
            if (result.NextStep != null)
                CurrentStep = result.NextStep;
            return result.Response;
        }
Beispiel #4
0
        public async Task<string> Process(string text)
        {
            Check.Required<ArgumentNullException>(() => text != null);

            var result = await CurrentStep.Process(text);
            if (result.NextStep != null)
                CurrentStep = result.NextStep;
            return result.Response;
        }
Beispiel #5
0
        public async Task <string> Process(IRandomAccessStream image)
        {
            Check.Required <ArgumentNullException>(() => image != null);

            var result = await CurrentStep.Process(image);

            if (result.NextStep != null)
            {
                CurrentStep = result.NextStep;
            }
            return(result.Response);
        }
Beispiel #6
0
        public async Task <string> Process(string text)
        {
            Check.Required <ArgumentNullException>(() => text != null);

            var result = await CurrentStep.Process(text);

            if (result.NextStep != null)
            {
                CurrentStep = result.NextStep;
            }
            return(result.Response);
        }