/// <summary> /// Create a new <Gather/> element and append it as a child of this element. /// </summary> /// <param name="input"> Input type Twilio should accept </param> /// <param name="action"> Action URL </param> /// <param name="method"> Action URL method </param> /// <param name="timeout"> Time to wait to gather input </param> /// <param name="speechTimeout"> Time to wait to gather speech input and it should be either auto or a positive /// integer. </param> /// <param name="maxSpeechTime"> Max allowed time for speech input </param> /// <param name="profanityFilter"> Profanity Filter on speech </param> /// <param name="finishOnKey"> Finish gather on key </param> /// <param name="numDigits"> Number of digits to collect </param> /// <param name="partialResultCallback"> Partial result callback URL </param> /// <param name="partialResultCallbackMethod"> Partial result callback URL method </param> /// <param name="language"> Language to use </param> /// <param name="hints"> Speech recognition hints </param> /// <param name="bargeIn"> Stop playing media upon speech </param> public VoiceResponse Gather(List<Gather.InputEnum> input = null, Uri action = null, Twilio.Http.HttpMethod method = null, int? timeout = null, string speechTimeout = null, int? maxSpeechTime = null, bool? profanityFilter = null, string finishOnKey = null, int? numDigits = null, Uri partialResultCallback = null, Twilio.Http.HttpMethod partialResultCallbackMethod = null, Gather.LanguageEnum language = null, string hints = null, bool? bargeIn = null) { var newChild = new Gather( input, action, method, timeout, speechTimeout, maxSpeechTime, profanityFilter, finishOnKey, numDigits, partialResultCallback, partialResultCallbackMethod, language, hints, bargeIn ); this.Append(newChild); return this; }
/// <summary> /// Gather data /// </summary> /// <param name="gather">Gather TwiML</param> /// <returns>VoiceResponse</returns> public VoiceResponse Gather(Gather gather) { _response.Add(gather.Element); return(this); }
public VoiceResponse Gather(Gather gather) { this.Append(gather); return this; }