| 1 | # Generated by tools/generate.pl from tools/twiml-elements.json. Do not edit this file. | ||
| 2 | package Twilio::TwiML::Voice::Gather; | ||
| 3 | |||
| 4 | 3 | ▶ | use 5.016; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 3 | ▶ | use parent 'Twilio::TwiML::TwiML'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 3 | our $VERSION = '2.001'; | |
| 10 | |||
| 11 | 3 | my %ATTRIBUTES = ( | |
| 12 | 'action' => { name => 'action' }, | ||
| 13 | 'action_on_empty_result' => { name => 'actionOnEmptyResult', boolean => 1 }, | ||
| 14 | 'actionOnEmptyResult' => { name => 'actionOnEmptyResult', boolean => 1 }, | ||
| 15 | 'barge_in' => { name => 'bargeIn', boolean => 1 }, | ||
| 16 | 'bargeIn' => { name => 'bargeIn', boolean => 1 }, | ||
| 17 | 'debug' => { name => 'debug', boolean => 1 }, | ||
| 18 | 'enhanced' => { name => 'enhanced', boolean => 1 }, | ||
| 19 | 'finish_on_key' => { name => 'finishOnKey' }, | ||
| 20 | 'finishOnKey' => { name => 'finishOnKey' }, | ||
| 21 | 'hints' => { name => 'hints' }, | ||
| 22 | 'input' => { name => 'input' }, | ||
| 23 | 'language' => { name => 'language' }, | ||
| 24 | 'max_speech_time' => { name => 'maxSpeechTime' }, | ||
| 25 | 'maxSpeechTime' => { name => 'maxSpeechTime' }, | ||
| 26 | 'method' => { name => 'method' }, | ||
| 27 | 'num_digits' => { name => 'numDigits' }, | ||
| 28 | 'numDigits' => { name => 'numDigits' }, | ||
| 29 | 'partial_result_callback' => { name => 'partialResultCallback' }, | ||
| 30 | 'partialResultCallback' => { name => 'partialResultCallback' }, | ||
| 31 | 'partial_result_callback_method' => { name => 'partialResultCallbackMethod' }, | ||
| 32 | 'partialResultCallbackMethod' => { name => 'partialResultCallbackMethod' }, | ||
| 33 | 'profanity_filter' => { name => 'profanityFilter', boolean => 1 }, | ||
| 34 | 'profanityFilter' => { name => 'profanityFilter', boolean => 1 }, | ||
| 35 | 'speech_model' => { name => 'speechModel' }, | ||
| 36 | 'speechModel' => { name => 'speechModel' }, | ||
| 37 | 'speech_timeout' => { name => 'speechTimeout' }, | ||
| 38 | 'speechTimeout' => { name => 'speechTimeout' }, | ||
| 39 | 'timeout' => { name => 'timeout' }, | ||
| 40 | ); | ||
| 41 | |||
| 42 | 42 | ▶ | sub attribute_table { return \%ATTRIBUTES } |
|
Subroutine
attribute_table: called CC=1 SCAR=0.0
Pod
documented
| |||
| 43 | |||
| 44 | 6 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 45 | 6 | my ($class, $attributes) = @_; | |
| 46 | 6 | return $class->SUPER::new('Gather', undef, $attributes); | |
| 47 | } | ||
| 48 | |||
| 49 | 2 | ▶ | sub pause { |
|
Subroutine
pause: called CC=1 SCAR=0.0
Pod
documented
| |||
| 50 | 2 | my ($self, $attributes) = @_; | |
| 51 | 2 | require Twilio::TwiML::Voice::Pause; | |
| 52 | 2 | return $self->nest(Twilio::TwiML::Voice::Pause->new($attributes)); | |
| 53 | } | ||
| 54 | |||
| 55 | 2 | ▶ | sub play { |
|
Subroutine
play: called CC=1 SCAR=0.0
Pod
documented
| |||
| 56 | 2 | my ($self, $url, $attributes) = @_; | |
| 57 | 2 | require Twilio::TwiML::Voice::Play; | |
| 58 | 2 | return $self->nest(Twilio::TwiML::Voice::Play->new($url, $attributes)); | |
| 59 | } | ||
| 60 | |||
| 61 | 4 | ▶ | sub say { |
|
Subroutine
say: called CC=1 SCAR=0.0
Pod
documented
| |||
| 62 | 4 | my ($self, $message, $attributes) = @_; | |
| 63 | 4 | require Twilio::TwiML::Voice::Say; | |
| 64 | 4 | return $self->nest(Twilio::TwiML::Voice::Say->new($message, $attributes)); | |
| 65 | } | ||
| 66 | |||
| 67 | 1 | ▶ | sub set_action { |
|
Subroutine
set_action: called CC=1 SCAR=0.0
Pod
documented
| |||
| 68 | 1 | my ($self, $value) = @_; | |
| 69 | 1 | return $self->set_attribute('action', $value); | |
| 70 | } | ||
| 71 | |||
| 72 | 1 | ▶ | sub set_action_on_empty_result { |
|
Subroutine
set_action_on_empty_result: called CC=1 SCAR=0.0
Pod
documented
| |||
| 73 | 1 | my ($self, $value) = @_; | |
| 74 | 1 | return $self->set_attribute('action_on_empty_result', $value); | |
| 75 | } | ||
| 76 | |||
| 77 | 1 | ▶ | sub set_barge_in { |
|
Subroutine
set_barge_in: called CC=1 SCAR=0.0
Pod
documented
| |||
| 78 | 1 | my ($self, $value) = @_; | |
| 79 | 1 | return $self->set_attribute('barge_in', $value); | |
| 80 | } | ||
| 81 | |||
| 82 | 1 | ▶ | sub set_debug { |
|
Subroutine
set_debug: called CC=1 SCAR=0.0
Pod
documented
| |||
| 83 | 1 | my ($self, $value) = @_; | |
| 84 | 1 | return $self->set_attribute('debug', $value); | |
| 85 | } | ||
| 86 | |||
| 87 | 1 | ▶ | sub set_enhanced { |
|
Subroutine
set_enhanced: called CC=1 SCAR=0.0
Pod
documented
| |||
| 88 | 1 | my ($self, $value) = @_; | |
| 89 | 1 | return $self->set_attribute('enhanced', $value); | |
| 90 | } | ||
| 91 | |||
| 92 | 1 | ▶ | sub set_finish_on_key { |
|
Subroutine
set_finish_on_key: called CC=1 SCAR=0.0
Pod
documented
| |||
| 93 | 1 | my ($self, $value) = @_; | |
| 94 | 1 | return $self->set_attribute('finish_on_key', $value); | |
| 95 | } | ||
| 96 | |||
| 97 | 1 | ▶ | sub set_hints { |
|
Subroutine
set_hints: called CC=1 SCAR=0.0
Pod
documented
| |||
| 98 | 1 | my ($self, $value) = @_; | |
| 99 | 1 | return $self->set_attribute('hints', $value); | |
| 100 | } | ||
| 101 | |||
| 102 | 1 | ▶ | sub set_input { |
|
Subroutine
set_input: called CC=1 SCAR=0.0
Pod
documented
| |||
| 103 | 1 | my ($self, $value) = @_; | |
| 104 | 1 | return $self->set_attribute('input', $value); | |
| 105 | } | ||
| 106 | |||
| 107 | 1 | ▶ | sub set_language { |
|
Subroutine
set_language: called CC=1 SCAR=0.0
Pod
documented
| |||
| 108 | 1 | my ($self, $value) = @_; | |
| 109 | 1 | return $self->set_attribute('language', $value); | |
| 110 | } | ||
| 111 | |||
| 112 | 1 | ▶ | sub set_max_speech_time { |
|
Subroutine
set_max_speech_time: called CC=1 SCAR=0.0
Pod
documented
| |||
| 113 | 1 | my ($self, $value) = @_; | |
| 114 | 1 | return $self->set_attribute('max_speech_time', $value); | |
| 115 | } | ||
| 116 | |||
| 117 | 1 | ▶ | sub set_method { |
|
Subroutine
set_method: called CC=1 SCAR=0.0
Pod
documented
| |||
| 118 | 1 | my ($self, $value) = @_; | |
| 119 | 1 | return $self->set_attribute('method', $value); | |
| 120 | } | ||
| 121 | |||
| 122 | 1 | ▶ | sub set_num_digits { |
|
Subroutine
set_num_digits: called CC=1 SCAR=0.0
Pod
documented
| |||
| 123 | 1 | my ($self, $value) = @_; | |
| 124 | 1 | return $self->set_attribute('num_digits', $value); | |
| 125 | } | ||
| 126 | |||
| 127 | 1 | ▶ | sub set_partial_result_callback { |
|
Subroutine
set_partial_result_callback: called CC=1 SCAR=0.0
Pod
documented
| |||
| 128 | 1 | my ($self, $value) = @_; | |
| 129 | 1 | return $self->set_attribute('partial_result_callback', $value); | |
| 130 | } | ||
| 131 | |||
| 132 | 1 | ▶ | sub set_partial_result_callback_method { |
|
Subroutine
set_partial_result_callback_method: called CC=1 SCAR=0.0
Pod
documented
| |||
| 133 | 1 | my ($self, $value) = @_; | |
| 134 | 1 | return $self->set_attribute('partial_result_callback_method', $value); | |
| 135 | } | ||
| 136 | |||
| 137 | 1 | ▶ | sub set_profanity_filter { |
|
Subroutine
set_profanity_filter: called CC=1 SCAR=0.0
Pod
documented
| |||
| 138 | 1 | my ($self, $value) = @_; | |
| 139 | 1 | return $self->set_attribute('profanity_filter', $value); | |
| 140 | } | ||
| 141 | |||
| 142 | 1 | ▶ | sub set_speech_model { |
|
Subroutine
set_speech_model: called CC=1 SCAR=0.0
Pod
documented
| |||
| 143 | 1 | my ($self, $value) = @_; | |
| 144 | 1 | return $self->set_attribute('speech_model', $value); | |
| 145 | } | ||
| 146 | |||
| 147 | 1 | ▶ | sub set_speech_timeout { |
|
Subroutine
set_speech_timeout: called CC=1 SCAR=0.0
Pod
documented
| |||
| 148 | 1 | my ($self, $value) = @_; | |
| 149 | 1 | return $self->set_attribute('speech_timeout', $value); | |
| 150 | } | ||
| 151 | |||
| 152 | 1 | ▶ | sub set_timeout { |
|
Subroutine
set_timeout: called CC=1 SCAR=0.0
Pod
documented
| |||
| 153 | 1 | my ($self, $value) = @_; | |
| 154 | 1 | return $self->set_attribute('timeout', $value); | |
| 155 | } | ||
| 156 | |||
| 157 | 3 | 1; | |
| 158 | |||
| 159 | __END__ | ||