C# Class TelAPI.InboundXML.Element.Gather

Inheritance: ELement
Afficher le fichier Open project: TelAPI/telapi-dotnet Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Create ( string action ) : Gather

The Gather element allows callers to input digits to the call using their keypads which are then sent via POST or GET to a URL for further processing.

Create ( string action, HttpMethod method, long timeout, string finishOnKey, long numDigits ) : Gather

The Gather element allows callers to input digits to the call using their keypads which are then sent via POST or GET to a URL for further processing.

Gather ( ) : System
Pause ( ) : Gather

The Pause element will pause the call

Pause ( long length ) : Gather

The Pause element will pause the call, holding for the number of seconds set by the length attribute.

Play ( string resource, long loop ) : Gather

The Play element plays an mp3 file for the caller

Say ( string text, Voice voice, long loop ) : Gather

The Say element reads text to the caller using a text-to-speech engine.

Method Details

Create() public static méthode

The Gather element allows callers to input digits to the call using their keypads which are then sent via POST or GET to a URL for further processing.
public static Create ( string action ) : Gather
action string URL where data will be sent
Résultat Gather

Create() public static méthode

The Gather element allows callers to input digits to the call using their keypads which are then sent via POST or GET to a URL for further processing.
public static Create ( string action, HttpMethod method, long timeout, string finishOnKey, long numDigits ) : Gather
action string URL where the gathered digits will be sent for further processing.
method HttpMethod Method used to request the action URL.
timeout long The number of seconds Gather should wait for digits to be entered before requesting the action URL. Timeout resets with each new digit input.
finishOnKey string The key a caller can press to end the Gather.
numDigits long The maximum number of digits to Gather.
Résultat Gather

Gather() public méthode

public Gather ( ) : System
Résultat System

Pause() public méthode

The Pause element will pause the call
public Pause ( ) : Gather
Résultat Gather

Pause() public méthode

The Pause element will pause the call, holding for the number of seconds set by the length attribute.
public Pause ( long length ) : Gather
length long The length in seconds the pause should be.
Résultat Gather

Play() public méthode

The Play element plays an mp3 file for the caller
public Play ( string resource, long loop ) : Gather
resource string Url of the mp3 audio
loop long The amount of times the Play should be repeated. 0 indicates an infinite loop.
Résultat Gather

Say() public méthode

The Say element reads text to the caller using a text-to-speech engine.
public Say ( string text, Voice voice, long loop ) : Gather
text string Text to say
voice Voice The type of voice that will read the text to caller.
loop long The amount of times the spoken text should be repeated. 0 indicates an infinite loop.
Résultat Gather