本文整理汇总了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));
}
示例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));
}
示例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));
}
示例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));
}