当前位置: 首页>>代码示例>>C#>>正文


C# Tropo.ask方法代码示例

本文整理汇总了C#中TropoCSharp.Tropo.Tropo.ask方法的典型用法代码示例。如果您正苦于以下问题:C# Tropo.ask方法的具体用法?C# Tropo.ask怎么用?C# Tropo.ask使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TropoCSharp.Tropo.Tropo的用法示例。


在下文中一共展示了Tropo.ask方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: testAsk

        public void testAsk()
        {
            Say say = new Say("Please enter your 5 digit zip code.");
            Choices choices = new Choices("[5 DIGITS]");

            Tropo tropo = new Tropo();
            tropo.ask(null, null, choices, null, "foo", null, say, null);
            Assert.AreEqual(this.askJson, TropoJSON.render(tropo));
        }
开发者ID:hack4reno,项目名称:hack4reno2011,代码行数:9,代码来源:TropoClassesTests.cs

示例2: testAskFromObject

        public void testAskFromObject()
        {
            Say say = new Say("Please enter your 5 digit zip code.");
            Choices choices = new Choices("[5 DIGITS]");
            Ask ask = new Ask(choices, "foo", say);

            Tropo tropo = new Tropo();
            tropo.ask(ask);
            Assert.AreEqual(this.askJson, TropoJSON.render(tropo));
        }
开发者ID:hack4reno,项目名称:hack4reno2011,代码行数:10,代码来源:TropoClassesTests.cs

示例3: testAskWithOptionsInDifferentOrder

        public void testAskWithOptionsInDifferentOrder()
        {
            Say say = new Say("Please enter your 5 digit zip code.");
            Choices choices = new Choices("[5 DIGITS]");
            Ask ask = new Ask();
            ask.bargein = false;
            ask.choices = choices;
            ask.required = true;
            ask.attempts = 1;
            ask.name = "foo";
            ask.say = say;
            ask.timeout = 30;
            ask.minConfidence = 30;

            Tropo tropo = new Tropo();
            tropo.ask(ask);
            Assert.AreEqual(this.askJsonWithOptions, TropoJSON.render(tropo));
        }
开发者ID:hack4reno,项目名称:hack4reno2011,代码行数:18,代码来源:TropoClassesTests.cs

示例4: testAskMethodWithAllArguements

 public void testAskMethodWithAllArguements()
 {
     Tropo tropo = new Tropo();
     tropo.ask(1, false, new Choices("[5 DIGITS]"), 30, "foo", true, new Say("Please enter your 5 digit zip code."), 30);
     Assert.AreEqual(this.askJsonWithOptions, TropoJSON.render(tropo));
 }
开发者ID:hack4reno,项目名称:hack4reno2011,代码行数:6,代码来源:TropoClassesTests.cs


注:本文中的TropoCSharp.Tropo.Tropo.ask方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。