diff --git a/lib/twiml/VoiceResponse.js b/lib/twiml/VoiceResponse.js index 8f430850f0..e909dc33db 100644 --- a/lib/twiml/VoiceResponse.js +++ b/lib/twiml/VoiceResponse.js @@ -589,24 +589,6 @@ Stream.prototype.parameter = function parameter(attributes) { }; -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @constructor Parameter - * - * @param {object} parameter - TwiML Noun - */ -/* jshint ignore:end */ -function Parameter(parameter) { - this.parameter = parameter; - this._propertyName = 'parameter'; -} - -Parameter.prototype = Object.create(TwiML.prototype); -Parameter.prototype.constructor = Parameter; - - /* jshint ignore:start */ /** * TwiML Verb @@ -665,114 +647,6 @@ Start.prototype.siprec = function siprec(attributes) { }; -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @constructor Siprec - * - * @param {object} siprec - TwiML Noun - */ -/* jshint ignore:end */ -function Siprec(siprec) { - this.siprec = siprec; - this._propertyName = 'siprec'; -} - -Siprec.prototype = Object.create(TwiML.prototype); -Siprec.prototype.constructor = Siprec; - -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @function parameter - * @memberof Siprec# - * - * @param {object} [attributes] - TwiML attributes - * @param {string} [attributes.name] - The name of the custom parameter - * @param {string} [attributes.value] - The value of the custom parameter - * - * @returns Parameter - */ -/* jshint ignore:end */ -Siprec.prototype.parameter = function parameter(attributes) { - return new Parameter(this.siprec.ele('Parameter', attributes)); -}; - - -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @constructor Parameter - * - * @param {object} parameter - TwiML Noun - */ -/* jshint ignore:end */ -function Parameter(parameter) { - this.parameter = parameter; - this._propertyName = 'parameter'; -} - -Parameter.prototype = Object.create(TwiML.prototype); -Parameter.prototype.constructor = Parameter; - - -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @constructor Stream - * - * @param {object} stream - TwiML Noun - */ -/* jshint ignore:end */ -function Stream(stream) { - this.stream = stream; - this._propertyName = 'stream'; -} - -Stream.prototype = Object.create(TwiML.prototype); -Stream.prototype.constructor = Stream; - -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @function parameter - * @memberof Stream# - * - * @param {object} [attributes] - TwiML attributes - * @param {string} [attributes.name] - The name of the custom parameter - * @param {string} [attributes.value] - The value of the custom parameter - * - * @returns Parameter - */ -/* jshint ignore:end */ -Stream.prototype.parameter = function parameter(attributes) { - return new Parameter(this.stream.ele('Parameter', attributes)); -}; - - -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @constructor Parameter - * - * @param {object} parameter - TwiML Noun - */ -/* jshint ignore:end */ -function Parameter(parameter) { - this.parameter = parameter; - this._propertyName = 'parameter'; -} - -Parameter.prototype = Object.create(TwiML.prototype); -Parameter.prototype.constructor = Parameter; - - /* jshint ignore:start */ /** * Twiml Verb @@ -1318,1569 +1192,202 @@ Pay.prototype.prompt = function prompt(attributes) { /* jshint ignore:start */ /** - * Twiml Verb + * TwiML Noun * - * @constructor Prompt + * @constructor Sms * - * @param {object} prompt - Twiml Verb + * @param {object} sms - TwiML Noun */ /* jshint ignore:end */ -function Prompt(prompt) { - this.prompt = prompt; - this._propertyName = 'prompt'; +function Sms(sms) { + this.sms = sms; + this._propertyName = 'sms'; } -Prompt.prototype = Object.create(TwiML.prototype); -Prompt.prototype.constructor = Prompt; +Sms.prototype = Object.create(TwiML.prototype); +Sms.prototype.constructor = Sms; + /* jshint ignore:start */ /** - * TwiML Verb - * - * @function say - * @memberof Prompt# + * TwiML Verb * - * @param {object} attributes - TwiML attributes - * @param {say.voice} [attributes.voice] - Voice to use - * @param {number} [attributes.loop] - Times to loop message - * @param {say.language} [attributes.language] - Message langauge - * @param {string} message - Message to say + * @constructor Reject * - * @returns Say + * @param {object} reject - TwiML Verb */ /* jshint ignore:end */ -Prompt.prototype.say = function say(attributes, message) { - return new Say(this.prompt.ele('Say', attributes, message)); -}; +function Reject(reject) { + this.reject = reject; + this._propertyName = 'reject'; +} + +Reject.prototype = Object.create(TwiML.prototype); +Reject.prototype.constructor = Reject; + /* jshint ignore:start */ /** - * TwiML Verb - * - * @function play - * @memberof Prompt# + * TwiML Verb * - * @param {object} [attributes] - TwiML attributes - * @param {number} [attributes.loop] - Times to loop media - * @param {string} [attributes.digits] - Play DTMF tones for digits - * @param {url} [url] - Media URL + * @constructor Redirect * - * @returns Play + * @param {object} redirect - TwiML Verb */ /* jshint ignore:end */ -Prompt.prototype.play = function play(attributes, url) { - return new Play(this.prompt.ele('Play', attributes, url)); -}; +function Redirect(redirect) { + this.redirect = redirect; + this._propertyName = 'redirect'; +} + +Redirect.prototype = Object.create(TwiML.prototype); +Redirect.prototype.constructor = Redirect; + /* jshint ignore:start */ /** - * TwiML Verb - * - * @function pause - * @memberof Prompt# + * TwiML Verb * - * @param {object} [attributes] - TwiML attributes - * @param {number} [attributes.length] - Length in seconds to pause + * @constructor Record * - * @returns Pause + * @param {object} record - TwiML Verb */ /* jshint ignore:end */ -Prompt.prototype.pause = function pause(attributes) { - return new Pause(this.prompt.ele('Pause', attributes)); -}; +function Record(record) { + this.record = record; + this._propertyName = 'record'; +} + +Record.prototype = Object.create(TwiML.prototype); +Record.prototype.constructor = Record; /* jshint ignore:start */ /** - * TwiML Verb + * TwiML Noun * - * @constructor Pause + * @constructor Queue * - * @param {object} pause - TwiML Verb + * @param {object} queue - TwiML Noun */ /* jshint ignore:end */ -function Pause(pause) { - this.pause = pause; - this._propertyName = 'pause'; +function Queue(queue) { + this.queue = queue; + this._propertyName = 'queue'; } -Pause.prototype = Object.create(TwiML.prototype); -Pause.prototype.constructor = Pause; +Queue.prototype = Object.create(TwiML.prototype); +Queue.prototype.constructor = Queue; /* jshint ignore:start */ /** - * TwiML Verb + * TwiML Verb * - * @constructor Play + * @constructor Leave * - * @param {object} play - TwiML Verb + * @param {object} leave - TwiML Verb */ /* jshint ignore:end */ -function Play(play) { - this.play = play; - this._propertyName = 'play'; +function Leave(leave) { + this.leave = leave; + this._propertyName = 'leave'; } -Play.prototype = Object.create(TwiML.prototype); -Play.prototype.constructor = Play; +Leave.prototype = Object.create(TwiML.prototype); +Leave.prototype.constructor = Leave; /* jshint ignore:start */ /** - * TwiML Verb + * TwiML Verb * - * @constructor Say + * @constructor Hangup * - * @param {object} say - TwiML Verb + * @param {object} hangup - TwiML Verb */ /* jshint ignore:end */ -function Say(say) { - this.say = say; - this._propertyName = 'say'; +function Hangup(hangup) { + this.hangup = hangup; + this._propertyName = 'hangup'; } -Say.prototype = Object.create(TwiML.prototype); -Say.prototype.constructor = Say; - -/* jshint ignore:start */ -/** - * Adding a Pause in - * - * @function ssmlBreak - * @memberof Say# - * - * @param {object} [attributes] - TwiML attributes - * @param {ssml_break.strength} [attributes.strength] - - * Set a pause based on strength - * @param {string} [attributes.time] - - * Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms - * - * @returns SsmlBreak - */ -/* jshint ignore:end */ -Say.prototype.ssmlBreak = function ssmlBreak(attributes) { - return new SsmlBreak(this.say.ele('break', attributes)); -}; - -/* jshint ignore:start */ -/** - * Emphasizing Words in - * - * @function ssmlEmphasis - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis - * @param {string} words - Words to emphasize - * - * @returns SsmlEmphasis - */ -/* jshint ignore:end */ -Say.prototype.ssmlEmphasis = function ssmlEmphasis(attributes, words) { - return new SsmlEmphasis(this.say.ele('emphasis', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Specifying Another Language for Specific Words in - * - * @function ssmlLang - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language - * @param {string} words - Words to speak - * - * @returns SsmlLang - */ -/* jshint ignore:end */ -Say.prototype.ssmlLang = function ssmlLang(attributes, words) { - return new SsmlLang(this.say.ele('lang', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Adding a Pause Between Paragraphs in - * - * @function ssmlP - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} words - Words to speak - * - * @returns SsmlP - */ -/* jshint ignore:end */ -Say.prototype.ssmlP = function ssmlP(attributes, words) { - return new SsmlP(this.say.ele('p', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Using Phonetic Pronunciation in - * - * @function ssmlPhoneme - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {ssml_phoneme.alphabet} [attributes.alphabet] - - * Specify the phonetic alphabet - * @param {string} [attributes.ph] - - * Specifiy the phonetic symbols for pronunciation - * @param {string} words - Words to speak - * - * @returns SsmlPhoneme - */ -/* jshint ignore:end */ -Say.prototype.ssmlPhoneme = function ssmlPhoneme(attributes, words) { - return new SsmlPhoneme(this.say.ele('phoneme', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Controling Volume, Speaking Rate, and Pitch in - * - * @function ssmlProsody - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} [attributes.volume] - - * Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB - * @param {string} [attributes.rate] - - * Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - * @param {string} [attributes.pitch] - - * Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - * @param {string} words - Words to speak - * - * @returns SsmlProsody - */ -/* jshint ignore:end */ -Say.prototype.ssmlProsody = function ssmlProsody(attributes, words) { - return new SsmlProsody(this.say.ele('prosody', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Adding A Pause Between Sentences in - * - * @function ssmlS - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} words - Words to speak - * - * @returns SsmlS - */ -/* jshint ignore:end */ -Say.prototype.ssmlS = function ssmlS(attributes, words) { - return new SsmlS(this.say.ele('s', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Controlling How Special Types of Words Are Spoken in - * - * @function ssmlSayAs - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {ssml_say_as.interpret_as} [attributes.interpret- - * as] - Specify the type of words are spoken - * @param {ssml_say_as.role} [attributes.role] - - * Specify the format of the date when interpret-as is set to date - * @param {string} words - Words to be interpreted - * - * @returns SsmlSayAs - */ -/* jshint ignore:end */ -Say.prototype.ssmlSayAs = function ssmlSayAs(attributes, words) { - return new SsmlSayAs(this.say.ele('say-as', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Pronouncing Acronyms and Abbreviations in - * - * @function ssmlSub - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} [attributes.alias] - - * Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation - * @param {string} words - Words to be substituted - * - * @returns SsmlSub - */ -/* jshint ignore:end */ -Say.prototype.ssmlSub = function ssmlSub(attributes, words) { - return new SsmlSub(this.say.ele('sub', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Improving Pronunciation by Specifying Parts of Speech in - * - * @function ssmlW - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} [attributes.role] - - * Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning - * @param {string} words - Words to speak - * - * @returns SsmlW - */ -/* jshint ignore:end */ -Say.prototype.ssmlW = function ssmlW(attributes, words) { - return new SsmlW(this.say.ele('w', attributes, words)); -}; - - -/* jshint ignore:start */ -/** - * Improving Pronunciation by Specifying Parts of Speech in - * - * @constructor SsmlW - * - * @param {object} ssmlW - - * Improving Pronunciation by Specifying Parts of Speech in - */ -/* jshint ignore:end */ -function SsmlW(ssmlW) { - this.ssmlW = ssmlW; - this._propertyName = 'ssmlW'; -} - -SsmlW.prototype = Object.create(TwiML.prototype); -SsmlW.prototype.constructor = SsmlW; - - -/* jshint ignore:start */ -/** - * Pronouncing Acronyms and Abbreviations in - * - * @constructor SsmlSub - * - * @param {object} ssmlSub - Pronouncing Acronyms and Abbreviations in - */ -/* jshint ignore:end */ -function SsmlSub(ssmlSub) { - this.ssmlSub = ssmlSub; - this._propertyName = 'ssmlSub'; -} - -SsmlSub.prototype = Object.create(TwiML.prototype); -SsmlSub.prototype.constructor = SsmlSub; - - -/* jshint ignore:start */ -/** - * Controlling How Special Types of Words Are Spoken in - * - * @constructor SsmlSayAs - * - * @param {object} ssmlSayAs - - * Controlling How Special Types of Words Are Spoken in - */ -/* jshint ignore:end */ -function SsmlSayAs(ssmlSayAs) { - this.ssmlSayAs = ssmlSayAs; - this._propertyName = 'ssmlSayAs'; -} - -SsmlSayAs.prototype = Object.create(TwiML.prototype); -SsmlSayAs.prototype.constructor = SsmlSayAs; - - -/* jshint ignore:start */ -/** - * Adding A Pause Between Sentences in - * - * @constructor SsmlS - * - * @param {object} ssmlS - Adding A Pause Between Sentences in - */ -/* jshint ignore:end */ -function SsmlS(ssmlS) { - this.ssmlS = ssmlS; - this._propertyName = 'ssmlS'; -} - -SsmlS.prototype = Object.create(TwiML.prototype); -SsmlS.prototype.constructor = SsmlS; - - -/* jshint ignore:start */ -/** - * Controling Volume, Speaking Rate, and Pitch in - * - * @constructor SsmlProsody - * - * @param {object} ssmlProsody - - * Controling Volume, Speaking Rate, and Pitch in - */ -/* jshint ignore:end */ -function SsmlProsody(ssmlProsody) { - this.ssmlProsody = ssmlProsody; - this._propertyName = 'ssmlProsody'; -} - -SsmlProsody.prototype = Object.create(TwiML.prototype); -SsmlProsody.prototype.constructor = SsmlProsody; - - -/* jshint ignore:start */ -/** - * Using Phonetic Pronunciation in - * - * @constructor SsmlPhoneme - * - * @param {object} ssmlPhoneme - Using Phonetic Pronunciation in - */ -/* jshint ignore:end */ -function SsmlPhoneme(ssmlPhoneme) { - this.ssmlPhoneme = ssmlPhoneme; - this._propertyName = 'ssmlPhoneme'; -} - -SsmlPhoneme.prototype = Object.create(TwiML.prototype); -SsmlPhoneme.prototype.constructor = SsmlPhoneme; - - -/* jshint ignore:start */ -/** - * Adding a Pause Between Paragraphs in - * - * @constructor SsmlP - * - * @param {object} ssmlP - Adding a Pause Between Paragraphs in - */ -/* jshint ignore:end */ -function SsmlP(ssmlP) { - this.ssmlP = ssmlP; - this._propertyName = 'ssmlP'; -} - -SsmlP.prototype = Object.create(TwiML.prototype); -SsmlP.prototype.constructor = SsmlP; - - -/* jshint ignore:start */ -/** - * Specifying Another Language for Specific Words in - * - * @constructor SsmlLang - * - * @param {object} ssmlLang - - * Specifying Another Language for Specific Words in - */ -/* jshint ignore:end */ -function SsmlLang(ssmlLang) { - this.ssmlLang = ssmlLang; - this._propertyName = 'ssmlLang'; -} - -SsmlLang.prototype = Object.create(TwiML.prototype); -SsmlLang.prototype.constructor = SsmlLang; - - -/* jshint ignore:start */ -/** - * Emphasizing Words in - * - * @constructor SsmlEmphasis - * - * @param {object} ssmlEmphasis - Emphasizing Words in - */ -/* jshint ignore:end */ -function SsmlEmphasis(ssmlEmphasis) { - this.ssmlEmphasis = ssmlEmphasis; - this._propertyName = 'ssmlEmphasis'; -} - -SsmlEmphasis.prototype = Object.create(TwiML.prototype); -SsmlEmphasis.prototype.constructor = SsmlEmphasis; - - -/* jshint ignore:start */ -/** - * Adding a Pause in - * - * @constructor SsmlBreak - * - * @param {object} ssmlBreak - Adding a Pause in - */ -/* jshint ignore:end */ -function SsmlBreak(ssmlBreak) { - this.ssmlBreak = ssmlBreak; - this._propertyName = 'ssmlBreak'; -} - -SsmlBreak.prototype = Object.create(TwiML.prototype); -SsmlBreak.prototype.constructor = SsmlBreak; - - -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @constructor Sms - * - * @param {object} sms - TwiML Noun - */ -/* jshint ignore:end */ -function Sms(sms) { - this.sms = sms; - this._propertyName = 'sms'; -} - -Sms.prototype = Object.create(TwiML.prototype); -Sms.prototype.constructor = Sms; - - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @constructor Say - * - * @param {object} say - TwiML Verb - */ -/* jshint ignore:end */ -function Say(say) { - this.say = say; - this._propertyName = 'say'; -} - -Say.prototype = Object.create(TwiML.prototype); -Say.prototype.constructor = Say; - -/* jshint ignore:start */ -/** - * Adding a Pause in - * - * @function ssmlBreak - * @memberof Say# - * - * @param {object} [attributes] - TwiML attributes - * @param {ssml_break.strength} [attributes.strength] - - * Set a pause based on strength - * @param {string} [attributes.time] - - * Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms - * - * @returns SsmlBreak - */ -/* jshint ignore:end */ -Say.prototype.ssmlBreak = function ssmlBreak(attributes) { - return new SsmlBreak(this.say.ele('break', attributes)); -}; - -/* jshint ignore:start */ -/** - * Emphasizing Words in - * - * @function ssmlEmphasis - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis - * @param {string} words - Words to emphasize - * - * @returns SsmlEmphasis - */ -/* jshint ignore:end */ -Say.prototype.ssmlEmphasis = function ssmlEmphasis(attributes, words) { - return new SsmlEmphasis(this.say.ele('emphasis', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Specifying Another Language for Specific Words in - * - * @function ssmlLang - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language - * @param {string} words - Words to speak - * - * @returns SsmlLang - */ -/* jshint ignore:end */ -Say.prototype.ssmlLang = function ssmlLang(attributes, words) { - return new SsmlLang(this.say.ele('lang', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Adding a Pause Between Paragraphs in - * - * @function ssmlP - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} words - Words to speak - * - * @returns SsmlP - */ -/* jshint ignore:end */ -Say.prototype.ssmlP = function ssmlP(attributes, words) { - return new SsmlP(this.say.ele('p', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Using Phonetic Pronunciation in - * - * @function ssmlPhoneme - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {ssml_phoneme.alphabet} [attributes.alphabet] - - * Specify the phonetic alphabet - * @param {string} [attributes.ph] - - * Specifiy the phonetic symbols for pronunciation - * @param {string} words - Words to speak - * - * @returns SsmlPhoneme - */ -/* jshint ignore:end */ -Say.prototype.ssmlPhoneme = function ssmlPhoneme(attributes, words) { - return new SsmlPhoneme(this.say.ele('phoneme', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Controling Volume, Speaking Rate, and Pitch in - * - * @function ssmlProsody - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} [attributes.volume] - - * Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB - * @param {string} [attributes.rate] - - * Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - * @param {string} [attributes.pitch] - - * Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - * @param {string} words - Words to speak - * - * @returns SsmlProsody - */ -/* jshint ignore:end */ -Say.prototype.ssmlProsody = function ssmlProsody(attributes, words) { - return new SsmlProsody(this.say.ele('prosody', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Adding A Pause Between Sentences in - * - * @function ssmlS - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} words - Words to speak - * - * @returns SsmlS - */ -/* jshint ignore:end */ -Say.prototype.ssmlS = function ssmlS(attributes, words) { - return new SsmlS(this.say.ele('s', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Controlling How Special Types of Words Are Spoken in - * - * @function ssmlSayAs - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {ssml_say_as.interpret_as} [attributes.interpret- - * as] - Specify the type of words are spoken - * @param {ssml_say_as.role} [attributes.role] - - * Specify the format of the date when interpret-as is set to date - * @param {string} words - Words to be interpreted - * - * @returns SsmlSayAs - */ -/* jshint ignore:end */ -Say.prototype.ssmlSayAs = function ssmlSayAs(attributes, words) { - return new SsmlSayAs(this.say.ele('say-as', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Pronouncing Acronyms and Abbreviations in - * - * @function ssmlSub - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} [attributes.alias] - - * Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation - * @param {string} words - Words to be substituted - * - * @returns SsmlSub - */ -/* jshint ignore:end */ -Say.prototype.ssmlSub = function ssmlSub(attributes, words) { - return new SsmlSub(this.say.ele('sub', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Improving Pronunciation by Specifying Parts of Speech in - * - * @function ssmlW - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} [attributes.role] - - * Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning - * @param {string} words - Words to speak - * - * @returns SsmlW - */ -/* jshint ignore:end */ -Say.prototype.ssmlW = function ssmlW(attributes, words) { - return new SsmlW(this.say.ele('w', attributes, words)); -}; - - -/* jshint ignore:start */ -/** - * Improving Pronunciation by Specifying Parts of Speech in - * - * @constructor SsmlW - * - * @param {object} ssmlW - - * Improving Pronunciation by Specifying Parts of Speech in - */ -/* jshint ignore:end */ -function SsmlW(ssmlW) { - this.ssmlW = ssmlW; - this._propertyName = 'ssmlW'; -} - -SsmlW.prototype = Object.create(TwiML.prototype); -SsmlW.prototype.constructor = SsmlW; - - -/* jshint ignore:start */ -/** - * Pronouncing Acronyms and Abbreviations in - * - * @constructor SsmlSub - * - * @param {object} ssmlSub - Pronouncing Acronyms and Abbreviations in - */ -/* jshint ignore:end */ -function SsmlSub(ssmlSub) { - this.ssmlSub = ssmlSub; - this._propertyName = 'ssmlSub'; -} - -SsmlSub.prototype = Object.create(TwiML.prototype); -SsmlSub.prototype.constructor = SsmlSub; - - -/* jshint ignore:start */ -/** - * Controlling How Special Types of Words Are Spoken in - * - * @constructor SsmlSayAs - * - * @param {object} ssmlSayAs - - * Controlling How Special Types of Words Are Spoken in - */ -/* jshint ignore:end */ -function SsmlSayAs(ssmlSayAs) { - this.ssmlSayAs = ssmlSayAs; - this._propertyName = 'ssmlSayAs'; -} - -SsmlSayAs.prototype = Object.create(TwiML.prototype); -SsmlSayAs.prototype.constructor = SsmlSayAs; - - -/* jshint ignore:start */ -/** - * Adding A Pause Between Sentences in - * - * @constructor SsmlS - * - * @param {object} ssmlS - Adding A Pause Between Sentences in - */ -/* jshint ignore:end */ -function SsmlS(ssmlS) { - this.ssmlS = ssmlS; - this._propertyName = 'ssmlS'; -} - -SsmlS.prototype = Object.create(TwiML.prototype); -SsmlS.prototype.constructor = SsmlS; - - -/* jshint ignore:start */ -/** - * Controling Volume, Speaking Rate, and Pitch in - * - * @constructor SsmlProsody - * - * @param {object} ssmlProsody - - * Controling Volume, Speaking Rate, and Pitch in - */ -/* jshint ignore:end */ -function SsmlProsody(ssmlProsody) { - this.ssmlProsody = ssmlProsody; - this._propertyName = 'ssmlProsody'; -} - -SsmlProsody.prototype = Object.create(TwiML.prototype); -SsmlProsody.prototype.constructor = SsmlProsody; - - -/* jshint ignore:start */ -/** - * Using Phonetic Pronunciation in - * - * @constructor SsmlPhoneme - * - * @param {object} ssmlPhoneme - Using Phonetic Pronunciation in - */ -/* jshint ignore:end */ -function SsmlPhoneme(ssmlPhoneme) { - this.ssmlPhoneme = ssmlPhoneme; - this._propertyName = 'ssmlPhoneme'; -} - -SsmlPhoneme.prototype = Object.create(TwiML.prototype); -SsmlPhoneme.prototype.constructor = SsmlPhoneme; - - -/* jshint ignore:start */ -/** - * Adding a Pause Between Paragraphs in - * - * @constructor SsmlP - * - * @param {object} ssmlP - Adding a Pause Between Paragraphs in - */ -/* jshint ignore:end */ -function SsmlP(ssmlP) { - this.ssmlP = ssmlP; - this._propertyName = 'ssmlP'; -} - -SsmlP.prototype = Object.create(TwiML.prototype); -SsmlP.prototype.constructor = SsmlP; - - -/* jshint ignore:start */ -/** - * Specifying Another Language for Specific Words in - * - * @constructor SsmlLang - * - * @param {object} ssmlLang - - * Specifying Another Language for Specific Words in - */ -/* jshint ignore:end */ -function SsmlLang(ssmlLang) { - this.ssmlLang = ssmlLang; - this._propertyName = 'ssmlLang'; -} - -SsmlLang.prototype = Object.create(TwiML.prototype); -SsmlLang.prototype.constructor = SsmlLang; - - -/* jshint ignore:start */ -/** - * Emphasizing Words in - * - * @constructor SsmlEmphasis - * - * @param {object} ssmlEmphasis - Emphasizing Words in - */ -/* jshint ignore:end */ -function SsmlEmphasis(ssmlEmphasis) { - this.ssmlEmphasis = ssmlEmphasis; - this._propertyName = 'ssmlEmphasis'; -} - -SsmlEmphasis.prototype = Object.create(TwiML.prototype); -SsmlEmphasis.prototype.constructor = SsmlEmphasis; - - -/* jshint ignore:start */ -/** - * Adding a Pause in - * - * @constructor SsmlBreak - * - * @param {object} ssmlBreak - Adding a Pause in - */ -/* jshint ignore:end */ -function SsmlBreak(ssmlBreak) { - this.ssmlBreak = ssmlBreak; - this._propertyName = 'ssmlBreak'; -} - -SsmlBreak.prototype = Object.create(TwiML.prototype); -SsmlBreak.prototype.constructor = SsmlBreak; - - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @constructor Reject - * - * @param {object} reject - TwiML Verb - */ -/* jshint ignore:end */ -function Reject(reject) { - this.reject = reject; - this._propertyName = 'reject'; -} - -Reject.prototype = Object.create(TwiML.prototype); -Reject.prototype.constructor = Reject; - - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @constructor Redirect - * - * @param {object} redirect - TwiML Verb - */ -/* jshint ignore:end */ -function Redirect(redirect) { - this.redirect = redirect; - this._propertyName = 'redirect'; -} - -Redirect.prototype = Object.create(TwiML.prototype); -Redirect.prototype.constructor = Redirect; - - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @constructor Record - * - * @param {object} record - TwiML Verb - */ -/* jshint ignore:end */ -function Record(record) { - this.record = record; - this._propertyName = 'record'; -} - -Record.prototype = Object.create(TwiML.prototype); -Record.prototype.constructor = Record; - - -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @constructor Queue - * - * @param {object} queue - TwiML Noun - */ -/* jshint ignore:end */ -function Queue(queue) { - this.queue = queue; - this._propertyName = 'queue'; -} - -Queue.prototype = Object.create(TwiML.prototype); -Queue.prototype.constructor = Queue; - - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @constructor Play - * - * @param {object} play - TwiML Verb - */ -/* jshint ignore:end */ -function Play(play) { - this.play = play; - this._propertyName = 'play'; -} - -Play.prototype = Object.create(TwiML.prototype); -Play.prototype.constructor = Play; - - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @constructor Pause - * - * @param {object} pause - TwiML Verb - */ -/* jshint ignore:end */ -function Pause(pause) { - this.pause = pause; - this._propertyName = 'pause'; -} - -Pause.prototype = Object.create(TwiML.prototype); -Pause.prototype.constructor = Pause; - - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @constructor Leave - * - * @param {object} leave - TwiML Verb - */ -/* jshint ignore:end */ -function Leave(leave) { - this.leave = leave; - this._propertyName = 'leave'; -} - -Leave.prototype = Object.create(TwiML.prototype); -Leave.prototype.constructor = Leave; - - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @constructor Hangup - * - * @param {object} hangup - TwiML Verb - */ -/* jshint ignore:end */ -function Hangup(hangup) { - this.hangup = hangup; - this._propertyName = 'hangup'; -} - -Hangup.prototype = Object.create(TwiML.prototype); -Hangup.prototype.constructor = Hangup; - - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @constructor Gather - * - * @param {object} gather - TwiML Verb - */ -/* jshint ignore:end */ -function Gather(gather) { - this.gather = gather; - this._propertyName = 'gather'; -} - -Gather.prototype = Object.create(TwiML.prototype); -Gather.prototype.constructor = Gather; - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @function say - * @memberof Gather# - * - * @param {object} attributes - TwiML attributes - * @param {say.voice} [attributes.voice] - Voice to use - * @param {number} [attributes.loop] - Times to loop message - * @param {say.language} [attributes.language] - Message langauge - * @param {string} message - Message to say - * - * @returns Say - */ -/* jshint ignore:end */ -Gather.prototype.say = function say(attributes, message) { - return new Say(this.gather.ele('Say', attributes, message)); -}; - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @function pause - * @memberof Gather# - * - * @param {object} [attributes] - TwiML attributes - * @param {number} [attributes.length] - Length in seconds to pause - * - * @returns Pause - */ -/* jshint ignore:end */ -Gather.prototype.pause = function pause(attributes) { - return new Pause(this.gather.ele('Pause', attributes)); -}; - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @function play - * @memberof Gather# - * - * @param {object} [attributes] - TwiML attributes - * @param {number} [attributes.loop] - Times to loop media - * @param {string} [attributes.digits] - Play DTMF tones for digits - * @param {url} [url] - Media URL - * - * @returns Play - */ -/* jshint ignore:end */ -Gather.prototype.play = function play(attributes, url) { - return new Play(this.gather.ele('Play', attributes, url)); -}; - - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @constructor Play - * - * @param {object} play - TwiML Verb - */ -/* jshint ignore:end */ -function Play(play) { - this.play = play; - this._propertyName = 'play'; -} - -Play.prototype = Object.create(TwiML.prototype); -Play.prototype.constructor = Play; - - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @constructor Pause - * - * @param {object} pause - TwiML Verb - */ -/* jshint ignore:end */ -function Pause(pause) { - this.pause = pause; - this._propertyName = 'pause'; -} - -Pause.prototype = Object.create(TwiML.prototype); -Pause.prototype.constructor = Pause; - - -/* jshint ignore:start */ -/** - * TwiML Verb - * - * @constructor Say - * - * @param {object} say - TwiML Verb - */ -/* jshint ignore:end */ -function Say(say) { - this.say = say; - this._propertyName = 'say'; -} - -Say.prototype = Object.create(TwiML.prototype); -Say.prototype.constructor = Say; - -/* jshint ignore:start */ -/** - * Adding a Pause in - * - * @function ssmlBreak - * @memberof Say# - * - * @param {object} [attributes] - TwiML attributes - * @param {ssml_break.strength} [attributes.strength] - - * Set a pause based on strength - * @param {string} [attributes.time] - - * Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms - * - * @returns SsmlBreak - */ -/* jshint ignore:end */ -Say.prototype.ssmlBreak = function ssmlBreak(attributes) { - return new SsmlBreak(this.say.ele('break', attributes)); -}; - -/* jshint ignore:start */ -/** - * Emphasizing Words in - * - * @function ssmlEmphasis - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {ssml_emphasis.level} [attributes.level] - Specify the degree of emphasis - * @param {string} words - Words to emphasize - * - * @returns SsmlEmphasis - */ -/* jshint ignore:end */ -Say.prototype.ssmlEmphasis = function ssmlEmphasis(attributes, words) { - return new SsmlEmphasis(this.say.ele('emphasis', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Specifying Another Language for Specific Words in - * - * @function ssmlLang - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {ssml_lang.xml_lang} [attributes.xml:lang] - Specify the language - * @param {string} words - Words to speak - * - * @returns SsmlLang - */ -/* jshint ignore:end */ -Say.prototype.ssmlLang = function ssmlLang(attributes, words) { - return new SsmlLang(this.say.ele('lang', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Adding a Pause Between Paragraphs in - * - * @function ssmlP - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} words - Words to speak - * - * @returns SsmlP - */ -/* jshint ignore:end */ -Say.prototype.ssmlP = function ssmlP(attributes, words) { - return new SsmlP(this.say.ele('p', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Using Phonetic Pronunciation in - * - * @function ssmlPhoneme - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {ssml_phoneme.alphabet} [attributes.alphabet] - - * Specify the phonetic alphabet - * @param {string} [attributes.ph] - - * Specifiy the phonetic symbols for pronunciation - * @param {string} words - Words to speak - * - * @returns SsmlPhoneme - */ -/* jshint ignore:end */ -Say.prototype.ssmlPhoneme = function ssmlPhoneme(attributes, words) { - return new SsmlPhoneme(this.say.ele('phoneme', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Controling Volume, Speaking Rate, and Pitch in - * - * @function ssmlProsody - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} [attributes.volume] - - * Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB - * @param {string} [attributes.rate] - - * Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - * @param {string} [attributes.pitch] - - * Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - * @param {string} words - Words to speak - * - * @returns SsmlProsody - */ -/* jshint ignore:end */ -Say.prototype.ssmlProsody = function ssmlProsody(attributes, words) { - return new SsmlProsody(this.say.ele('prosody', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Adding A Pause Between Sentences in - * - * @function ssmlS - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} words - Words to speak - * - * @returns SsmlS - */ -/* jshint ignore:end */ -Say.prototype.ssmlS = function ssmlS(attributes, words) { - return new SsmlS(this.say.ele('s', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Controlling How Special Types of Words Are Spoken in - * - * @function ssmlSayAs - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {ssml_say_as.interpret_as} [attributes.interpret- - * as] - Specify the type of words are spoken - * @param {ssml_say_as.role} [attributes.role] - - * Specify the format of the date when interpret-as is set to date - * @param {string} words - Words to be interpreted - * - * @returns SsmlSayAs - */ -/* jshint ignore:end */ -Say.prototype.ssmlSayAs = function ssmlSayAs(attributes, words) { - return new SsmlSayAs(this.say.ele('say-as', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Pronouncing Acronyms and Abbreviations in - * - * @function ssmlSub - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} [attributes.alias] - - * Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation - * @param {string} words - Words to be substituted - * - * @returns SsmlSub - */ -/* jshint ignore:end */ -Say.prototype.ssmlSub = function ssmlSub(attributes, words) { - return new SsmlSub(this.say.ele('sub', attributes, words)); -}; - -/* jshint ignore:start */ -/** - * Improving Pronunciation by Specifying Parts of Speech in - * - * @function ssmlW - * @memberof Say# - * - * @param {object} attributes - TwiML attributes - * @param {string} [attributes.role] - - * Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning - * @param {string} words - Words to speak - * - * @returns SsmlW - */ -/* jshint ignore:end */ -Say.prototype.ssmlW = function ssmlW(attributes, words) { - return new SsmlW(this.say.ele('w', attributes, words)); -}; - - -/* jshint ignore:start */ -/** - * Improving Pronunciation by Specifying Parts of Speech in - * - * @constructor SsmlW - * - * @param {object} ssmlW - - * Improving Pronunciation by Specifying Parts of Speech in - */ -/* jshint ignore:end */ -function SsmlW(ssmlW) { - this.ssmlW = ssmlW; - this._propertyName = 'ssmlW'; -} - -SsmlW.prototype = Object.create(TwiML.prototype); -SsmlW.prototype.constructor = SsmlW; - - -/* jshint ignore:start */ -/** - * Pronouncing Acronyms and Abbreviations in - * - * @constructor SsmlSub - * - * @param {object} ssmlSub - Pronouncing Acronyms and Abbreviations in - */ -/* jshint ignore:end */ -function SsmlSub(ssmlSub) { - this.ssmlSub = ssmlSub; - this._propertyName = 'ssmlSub'; -} - -SsmlSub.prototype = Object.create(TwiML.prototype); -SsmlSub.prototype.constructor = SsmlSub; - - -/* jshint ignore:start */ -/** - * Controlling How Special Types of Words Are Spoken in - * - * @constructor SsmlSayAs - * - * @param {object} ssmlSayAs - - * Controlling How Special Types of Words Are Spoken in - */ -/* jshint ignore:end */ -function SsmlSayAs(ssmlSayAs) { - this.ssmlSayAs = ssmlSayAs; - this._propertyName = 'ssmlSayAs'; -} - -SsmlSayAs.prototype = Object.create(TwiML.prototype); -SsmlSayAs.prototype.constructor = SsmlSayAs; +Hangup.prototype = Object.create(TwiML.prototype); +Hangup.prototype.constructor = Hangup; /* jshint ignore:start */ /** - * Adding A Pause Between Sentences in + * TwiML Verb * - * @constructor SsmlS + * @constructor Gather * - * @param {object} ssmlS - Adding A Pause Between Sentences in + * @param {object} gather - TwiML Verb */ /* jshint ignore:end */ -function SsmlS(ssmlS) { - this.ssmlS = ssmlS; - this._propertyName = 'ssmlS'; +function Gather(gather) { + this.gather = gather; + this._propertyName = 'gather'; } -SsmlS.prototype = Object.create(TwiML.prototype); -SsmlS.prototype.constructor = SsmlS; - +Gather.prototype = Object.create(TwiML.prototype); +Gather.prototype.constructor = Gather; /* jshint ignore:start */ /** - * Controling Volume, Speaking Rate, and Pitch in - * - * @constructor SsmlProsody + * TwiML Verb * - * @param {object} ssmlProsody - - * Controling Volume, Speaking Rate, and Pitch in - */ -/* jshint ignore:end */ -function SsmlProsody(ssmlProsody) { - this.ssmlProsody = ssmlProsody; - this._propertyName = 'ssmlProsody'; -} - -SsmlProsody.prototype = Object.create(TwiML.prototype); -SsmlProsody.prototype.constructor = SsmlProsody; - - -/* jshint ignore:start */ -/** - * Using Phonetic Pronunciation in + * @function say + * @memberof Gather# * - * @constructor SsmlPhoneme + * @param {object} attributes - TwiML attributes + * @param {say.voice} [attributes.voice] - Voice to use + * @param {number} [attributes.loop] - Times to loop message + * @param {say.language} [attributes.language] - Message langauge + * @param {string} message - Message to say * - * @param {object} ssmlPhoneme - Using Phonetic Pronunciation in + * @returns Say */ /* jshint ignore:end */ -function SsmlPhoneme(ssmlPhoneme) { - this.ssmlPhoneme = ssmlPhoneme; - this._propertyName = 'ssmlPhoneme'; -} - -SsmlPhoneme.prototype = Object.create(TwiML.prototype); -SsmlPhoneme.prototype.constructor = SsmlPhoneme; - +Gather.prototype.say = function say(attributes, message) { + return new Say(this.gather.ele('Say', attributes, message)); +}; /* jshint ignore:start */ /** - * Adding a Pause Between Paragraphs in - * - * @constructor SsmlP + * TwiML Verb * - * @param {object} ssmlP - Adding a Pause Between Paragraphs in - */ -/* jshint ignore:end */ -function SsmlP(ssmlP) { - this.ssmlP = ssmlP; - this._propertyName = 'ssmlP'; -} - -SsmlP.prototype = Object.create(TwiML.prototype); -SsmlP.prototype.constructor = SsmlP; - - -/* jshint ignore:start */ -/** - * Specifying Another Language for Specific Words in + * @function pause + * @memberof Gather# * - * @constructor SsmlLang + * @param {object} [attributes] - TwiML attributes + * @param {number} [attributes.length] - Length in seconds to pause * - * @param {object} ssmlLang - - * Specifying Another Language for Specific Words in + * @returns Pause */ /* jshint ignore:end */ -function SsmlLang(ssmlLang) { - this.ssmlLang = ssmlLang; - this._propertyName = 'ssmlLang'; -} - -SsmlLang.prototype = Object.create(TwiML.prototype); -SsmlLang.prototype.constructor = SsmlLang; - +Gather.prototype.pause = function pause(attributes) { + return new Pause(this.gather.ele('Pause', attributes)); +}; /* jshint ignore:start */ /** - * Emphasizing Words in - * - * @constructor SsmlEmphasis + * TwiML Verb * - * @param {object} ssmlEmphasis - Emphasizing Words in - */ -/* jshint ignore:end */ -function SsmlEmphasis(ssmlEmphasis) { - this.ssmlEmphasis = ssmlEmphasis; - this._propertyName = 'ssmlEmphasis'; -} - -SsmlEmphasis.prototype = Object.create(TwiML.prototype); -SsmlEmphasis.prototype.constructor = SsmlEmphasis; - - -/* jshint ignore:start */ -/** - * Adding a Pause in + * @function play + * @memberof Gather# * - * @constructor SsmlBreak + * @param {object} [attributes] - TwiML attributes + * @param {number} [attributes.loop] - Times to loop media + * @param {string} [attributes.digits] - Play DTMF tones for digits + * @param {url} [url] - Media URL * - * @param {object} ssmlBreak - Adding a Pause in + * @returns Play */ /* jshint ignore:end */ -function SsmlBreak(ssmlBreak) { - this.ssmlBreak = ssmlBreak; - this._propertyName = 'ssmlBreak'; -} - -SsmlBreak.prototype = Object.create(TwiML.prototype); -SsmlBreak.prototype.constructor = SsmlBreak; +Gather.prototype.play = function play(attributes, url) { + return new Play(this.gather.ele('Play', attributes, url)); +}; /* jshint ignore:start */ @@ -3160,24 +1667,6 @@ Sim.prototype = Object.create(TwiML.prototype); Sim.prototype.constructor = Sim; -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @constructor Queue - * - * @param {object} queue - TwiML Noun - */ -/* jshint ignore:end */ -function Queue(queue) { - this.queue = queue; - this._propertyName = 'queue'; -} - -Queue.prototype = Object.create(TwiML.prototype); -Queue.prototype.constructor = Queue; - - /* jshint ignore:start */ /** * TwiML Noun @@ -3267,24 +1756,6 @@ Client.prototype.parameter = function parameter(attributes) { }; -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @constructor Parameter - * - * @param {object} parameter - TwiML Noun - */ -/* jshint ignore:end */ -function Parameter(parameter) { - this.parameter = parameter; - this._propertyName = 'parameter'; -} - -Parameter.prototype = Object.create(TwiML.prototype); -Parameter.prototype.constructor = Parameter; - - /* jshint ignore:start */ /** * TwiML Noun @@ -3379,60 +1850,6 @@ Connect.prototype.stream = function stream(attributes) { }; -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @constructor Stream - * - * @param {object} stream - TwiML Noun - */ -/* jshint ignore:end */ -function Stream(stream) { - this.stream = stream; - this._propertyName = 'stream'; -} - -Stream.prototype = Object.create(TwiML.prototype); -Stream.prototype.constructor = Stream; - -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @function parameter - * @memberof Stream# - * - * @param {object} [attributes] - TwiML attributes - * @param {string} [attributes.name] - The name of the custom parameter - * @param {string} [attributes.value] - The value of the custom parameter - * - * @returns Parameter - */ -/* jshint ignore:end */ -Stream.prototype.parameter = function parameter(attributes) { - return new Parameter(this.stream.ele('Parameter', attributes)); -}; - - -/* jshint ignore:start */ -/** - * TwiML Noun - * - * @constructor Parameter - * - * @param {object} parameter - TwiML Noun - */ -/* jshint ignore:end */ -function Parameter(parameter) { - this.parameter = parameter; - this._propertyName = 'parameter'; -} - -Parameter.prototype = Object.create(TwiML.prototype); -Parameter.prototype.constructor = Parameter; - - /* jshint ignore:start */ /** * TwiML Noun