本文整理汇总了C#中TwilioResponse.Dial方法的典型用法代码示例。如果您正苦于以下问题:C# TwilioResponse.Dial方法的具体用法?C# TwilioResponse.Dial怎么用?C# TwilioResponse.Dial使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TwilioResponse
的用法示例。
在下文中一共展示了TwilioResponse.Dial方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Can_Generate_Dial_And_Client_Noun
public void Can_Generate_Dial_And_Client_Noun()
{
var response = new TwilioResponse();
response.Dial(new Client("Jenny"));
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}
示例2: Can_Generate_Dial_And_Conf_Object_Param
public void Can_Generate_Dial_And_Conf_Object_Param()
{
var response = new TwilioResponse();
response.Dial(new Conference("room1"));
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}
示例3: Example_1
public void Example_1()
{
var response = new TwilioResponse();
response.Dial(new Number("415-123-4567", new { sendDigits = "wwww1928" }));
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}
示例4: Can_Generate_Dial
public void Can_Generate_Dial()
{
var response = new TwilioResponse();
response.Dial("555-111-2222");
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}
示例5: Can_Generate_Dial_And_Attributes
public void Can_Generate_Dial_And_Attributes()
{
var response = new TwilioResponse();
response.Dial("555-111-2222", new { action = "dial.xml", method = "GET", timeout = "30", hangupOnStar = "true", timeLimit = "1000", callerId = "555-111-2222" });
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}
示例6: _1_3b
public void _1_3b()
{
var response = new TwilioResponse();
response.Dial("+13105551212");
response.Say("The call failed or the remote party hung up. Goodbye.");
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}
示例7: Example_2
public void Example_2()
{
var response = new TwilioResponse();
response.Dial("415-123-4567", new { action = "/handleDialCallStatus.php", method = "GET" });
response.Say("I am unreachable");
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}
示例8: Example_1
public void Example_1()
{
var response = new TwilioResponse();
response.Dial("515-123-4567");
response.Say("Goodbye");
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}
示例9: Example_1
public void Example_1()
{
var response = new TwilioResponse();
response.Dial("415-123-4567");
response.Redirect("http://www.foo.com/nextInstructions");
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}
示例10: Can_Generate_Dial_And_Mixed_Number_And_Client_Nouns
public void Can_Generate_Dial_And_Mixed_Number_And_Client_Nouns()
{
var response = new TwilioResponse();
response.Dial(
new Number("+15551112222"),
new Client("Tommy"),
new Number("+15553334444"),
new Number("+15556667777"),
new Client("Jenny")
);
Debug.Write(response.ToString());
Assert.True(IsValidTwiML(response.ToXDocument()));
}
示例11: Can_Generate_Dial_And_Sip_Object_And_Dial_Parameters
public void Can_Generate_Dial_And_Sip_Object_And_Dial_Parameters()
{
var response = new TwilioResponse();
response.Dial(
new Sip("[email protected]"),
new { action = "dial.xml", method = "GET", timeout = "30", hangupOnStar = "true", timeLimit = "1000", callerId = "555-111-2222" }
);
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}
示例12: Can_Generate_Dial_And_Sip_Object_And_Sip_Parameters
public void Can_Generate_Dial_And_Sip_Object_And_Sip_Parameters()
{
var response = new TwilioResponse();
response.Dial(new Sip("[email protected]", new { username="asdasd", password="asdasd", url="asdsad", method="POST" }));
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}
示例13: Can_Generate_Dial_And_Sip_Object
public void Can_Generate_Dial_And_Sip_Object()
{
var response = new TwilioResponse();
response.Dial(new Sip("[email protected]"));
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}
示例14: Can_Generate_Dial_And_Queue
public void Can_Generate_Dial_And_Queue()
{
var response = new TwilioResponse();
response.Dial(new Queue("example"));
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}
示例15: Can_Generate_Dial_And_Queue_Object_Param
public void Can_Generate_Dial_And_Queue_Object_Param()
{
var response = new TwilioResponse();
response.Dial(new Queue(new { reservationSid = "RSXXXXX", postworkActivitySid="PWXXXXXX" }));
Assert.IsTrue(IsValidTwiML(response.ToXDocument()));
}