Méthode | Description | |
---|---|---|
Build ( ) : |
Builds an instance.
|
|
DialConference ( string conferenceName, bool participantMuted = false, bool beepOnEnterOrExit = true, bool startConferenceOnEnter = true, bool endConferenceOnExit = false, string waitMusicUrl = "", ActionMethod waitMusicMethod = ActionMethod.POST, uint maxParticipants = 40, string actionUrl = "", ActionMethod methodUrl = ActionMethod.POST, uint timeoutSeconds = 30, bool hangupOnStar = false, uint timeLimitMilliseconds = 14400, string statusCallbackUrl = "", string callerIdNumber = "", bool record = null ) : |
Adds a Dial and Conference Element with the specified details.
|
|
DialNumber ( string numberToDial, string digitsToSendAfterConnect = "", string numberUrl = "", string actionUrl = "", ActionMethod actionMethod = ActionMethod.POST, uint timeoutSeconds = 30, bool hangupOnStar = false, uint timeLimitMilliseconds = 14400, string statusCallbackUrl = "", string callerIdNumber = "" ) : |
Adds a Dial and Number Element with the specified details.
|
|
Gather ( string actionUrl = "", ActionMethod actionMethod = ActionMethod.POST, uint timeoutSeconds = 5, char keyThatFinishes = '#', uint numDigitsToCollect = 1000 ) : |
Adds a Gather Element to the response.
|
|
GatherWhilePlaying ( string fileUrl, uint timesToLoop = 1, string actionUrl = "", ActionMethod actionMethod = ActionMethod.POST, uint timeoutSeconds = 5, char keyThatFinishes = '#', uint numDigitsToCollect = 1000 ) : |
Adds a Gather Element with a nested Playing Element.
|
|
GatherWhileSaying ( string textToSay, SayVoice voiceSex = SayVoice.man, SayLanguage voiceLanguage = SayLanguage.en, int loopTimes = 1, string actionUrl = "", ActionMethod actionMethod = ActionMethod.POST, uint timeoutSeconds = 5, char keyThatFinishes = '#', uint numDigitsToCollect = 1000 ) : |
Adds a Gather element with a nested say element.
|
|
Hangup ( ) : |
Adds a Hangup Element to the Response.
|
|
Pause ( uint secondsToPause = 1 ) : |
Adds a pause element to the response.
|
|
Play ( string fileUrl, uint timesToLoop = 1 ) : |
Adds a Play Element to the Response.
|
|
Record ( string actionUrl = "", ActionMethod actionMethod = ActionMethod.POST, uint timeoutSeconds = 5, char keyThatFinishes = '#', uint maxLengthMilliseconds = 3600, bool transcribeAudio = false, string transcribeCallbackUrl = "", bool playBeepBeforeStart = true ) : |
Adds a Record Element with the specified details.
|
|
Redirect ( string url, ActionMethod method = ActionMethod.POST ) : |
Adds a Redirect Element to the Response.
|
|
Reject ( RejectReason reason = RejectReason.rejected ) : |
Adds a Reject Element to the Response
|
|
Say ( string thingToSay, SayVoice voiceSex = SayVoice.man, SayLanguage voiceLanguage = SayLanguage.en, uint loopTimes = 1 ) : |
Adds a Say Element to the Response.
|
|
Sms ( string messageText, string toNumber = "", string fromNumber = "", string actionUrl = "", ActionMethod actionMethod = ActionMethod.POST ) : |
Adds an Sms Element with the specified details.
|
|
ToXmlResponse ( ) : System.Xml.Linq.XElement |
Converts the elements in this instance into a TwiML Response
|
Méthode | Description | |
---|---|---|
AddVerb ( Verb verb, string value, object attributes ) : |
||
CreateAttributeDictionary ( object attributes ) : string>.Dictionary |
||
CreateBuilderElement ( Verb verb, string value, object attributes ) : |
||
CreateVerbBase ( Verb verb, string value, object attributes ) : VerbBase | ||
CreateXmlFromElement ( |
||
CreateXmlFromVerb ( VerbBase verb ) : System.Xml.Linq.XElement | ||
TwiMLBuilder ( ) : System |
Initializes a new instance of the TwiMLBuilder class.
|
public DialConference ( string conferenceName, bool participantMuted = false, bool beepOnEnterOrExit = true, bool startConferenceOnEnter = true, bool endConferenceOnExit = false, string waitMusicUrl = "", ActionMethod waitMusicMethod = ActionMethod.POST, uint maxParticipants = 40, string actionUrl = "", ActionMethod methodUrl = ActionMethod.POST, uint timeoutSeconds = 30, bool hangupOnStar = false, uint timeLimitMilliseconds = 14400, string statusCallbackUrl = "", string callerIdNumber = "", bool record = null ) : |
||
conferenceName | string | Name of the conference. |
participantMuted | bool | if set to |
beepOnEnterOrExit | bool | if set to |
startConferenceOnEnter | bool | if set to |
endConferenceOnExit | bool | if set to |
waitMusicUrl | string | The wait music URL. |
waitMusicMethod | ActionMethod | The wait music method. |
maxParticipants | uint | The max participants. |
actionUrl | string | The action URL. |
methodUrl | ActionMethod | The method URL. |
timeoutSeconds | uint | The timeout seconds. |
hangupOnStar | bool | if set to |
timeLimitMilliseconds | uint | The time limit milliseconds. |
statusCallbackUrl | string | The status callback URL. |
callerIdNumber | string | The caller id number. |
record | bool | UNDOCUMENTED: Whether to record this conference or not. |
Résultat |
public DialNumber ( string numberToDial, string digitsToSendAfterConnect = "", string numberUrl = "", string actionUrl = "", ActionMethod actionMethod = ActionMethod.POST, uint timeoutSeconds = 30, bool hangupOnStar = false, uint timeLimitMilliseconds = 14400, string statusCallbackUrl = "", string callerIdNumber = "" ) : |
||
numberToDial | string | The number to dial. |
digitsToSendAfterConnect | string | The digits to send after connect. |
numberUrl | string | The number URL. |
actionUrl | string | The action URL. |
actionMethod | ActionMethod | The action method. |
timeoutSeconds | uint | The timeout seconds. |
hangupOnStar | bool | if set to |
timeLimitMilliseconds | uint | The time limit milliseconds. |
statusCallbackUrl | string | The status callback URL. |
callerIdNumber | string | The caller id number. |
Résultat |
public Gather ( string actionUrl = "", ActionMethod actionMethod = ActionMethod.POST, uint timeoutSeconds = 5, char keyThatFinishes = '#', uint numDigitsToCollect = 1000 ) : |
||
actionUrl | string | The action URL. |
actionMethod | ActionMethod | The action method. |
timeoutSeconds | uint | The timeout seconds. |
keyThatFinishes | char | The key that finishes collection. |
numDigitsToCollect | uint | The num digits to collect. |
Résultat |
public GatherWhilePlaying ( string fileUrl, uint timesToLoop = 1, string actionUrl = "", ActionMethod actionMethod = ActionMethod.POST, uint timeoutSeconds = 5, char keyThatFinishes = '#', uint numDigitsToCollect = 1000 ) : |
||
fileUrl | string | The file URL. |
timesToLoop | uint | The times to loop. |
actionUrl | string | The action URL. |
actionMethod | ActionMethod | The action method. |
timeoutSeconds | uint | The timeout seconds. |
keyThatFinishes | char | The key that finishes. |
numDigitsToCollect | uint | The num digits to collect. |
Résultat |
public GatherWhileSaying ( string textToSay, SayVoice voiceSex = SayVoice.man, SayLanguage voiceLanguage = SayLanguage.en, int loopTimes = 1, string actionUrl = "", ActionMethod actionMethod = ActionMethod.POST, uint timeoutSeconds = 5, char keyThatFinishes = '#', uint numDigitsToCollect = 1000 ) : |
||
textToSay | string | The text to say. |
voiceSex | SayVoice | |
voiceLanguage | SayLanguage | |
loopTimes | int | |
actionUrl | string | The action URL. |
actionMethod | ActionMethod | The action method. |
timeoutSeconds | uint | The timeout seconds. |
keyThatFinishes | char | The key that finishes. |
numDigitsToCollect | uint | The num digits to collect. |
Résultat |
public Pause ( uint secondsToPause = 1 ) : |
||
secondsToPause | uint | The seconds to pause. |
Résultat |
public Play ( string fileUrl, uint timesToLoop = 1 ) : |
||
fileUrl | string | The file URL. |
timesToLoop | uint | The times to loop. |
Résultat |
public Record ( string actionUrl = "", ActionMethod actionMethod = ActionMethod.POST, uint timeoutSeconds = 5, char keyThatFinishes = '#', uint maxLengthMilliseconds = 3600, bool transcribeAudio = false, string transcribeCallbackUrl = "", bool playBeepBeforeStart = true ) : |
||
actionUrl | string | The action URL. |
actionMethod | ActionMethod | The action method. |
timeoutSeconds | uint | The timeout seconds. |
keyThatFinishes | char | The key that finishes. |
maxLengthMilliseconds | uint | The max length milliseconds. |
transcribeAudio | bool | if set to |
transcribeCallbackUrl | string | The transcribe callback URL. |
playBeepBeforeStart | bool | if set to |
Résultat |
public Redirect ( string url, ActionMethod method = ActionMethod.POST ) : |
||
url | string | The URL. |
method | ActionMethod | The method. |
Résultat |
public Reject ( RejectReason reason = RejectReason.rejected ) : |
||
reason | RejectReason | The reason for rejection. |
Résultat |
public Say ( string thingToSay, SayVoice voiceSex = SayVoice.man, SayLanguage voiceLanguage = SayLanguage.en, uint loopTimes = 1 ) : |
||
thingToSay | string | The thing to say. |
voiceSex | SayVoice | The voice sex. |
voiceLanguage | SayLanguage | The voice language. |
loopTimes | uint | The loop times. |
Résultat |
public Sms ( string messageText, string toNumber = "", string fromNumber = "", string actionUrl = "", ActionMethod actionMethod = ActionMethod.POST ) : |
||
messageText | string | The message text. |
toNumber | string | To number. |
fromNumber | string | From number. |
actionUrl | string | The action URL. |
actionMethod | ActionMethod | The action method. |
Résultat |
public ToXmlResponse ( ) : System.Xml.Linq.XElement | ||
Résultat | System.Xml.Linq.XElement |