Exemplo n.º 1
0
        private static TropoModel ConvertAsk(global::VoiceModel.Ask model)
        {
            TropoModel tmodel = new TropoModel();

            ConvertPromptList(model.initialPrompt, ref tmodel);

            return(tmodel);
        }
Exemplo n.º 2
0
        private static string ConvertAsk(global::VoiceModel.Ask model)
        {
            Tropo tmodel = new Tropo();

            tmodel.Ask(3, true, ConvertGrammar(model.grammar), null, "result", null, ConvertPromptList(model.initialPrompt, model.json), null);
            tmodel.On("continue", model.nextUri, null);

            return(tmodel.RenderJSON());
        }