/// <summary> /// Create a new Gather /// </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 Gather(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) : base("Gather") { this.Input = input; this.Action = action; this.Method = method; this.Timeout = timeout; this.SpeechTimeout = speechTimeout; this.MaxSpeechTime = maxSpeechTime; this.ProfanityFilter = profanityFilter; this.FinishOnKey = finishOnKey; this.NumDigits = numDigits; this.PartialResultCallback = partialResultCallback; this.PartialResultCallbackMethod = partialResultCallbackMethod; this.Language = language; this.Hints = hints; this.BargeIn = bargeIn; }
/// <summary> /// Create a new Gather /// </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> /// <param name="debug"> Allow debug for gather </param> /// <param name="actionOnEmptyResult"> Force webhook to the action URL event if there is no input </param> /// <param name="speechModel"> Specify the model that is best suited for your use case </param> /// <param name="enhanced"> Use enhanced speech model </param> public 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, bool?debug = null, bool?actionOnEmptyResult = null, Gather.SpeechModelEnum speechModel = null, bool?enhanced = null) : base("Gather") { this.Input = input; this.Action = action; this.Method = method; this.Timeout = timeout; this.SpeechTimeout = speechTimeout; this.MaxSpeechTime = maxSpeechTime; this.ProfanityFilter = profanityFilter; this.FinishOnKey = finishOnKey; this.NumDigits = numDigits; this.PartialResultCallback = partialResultCallback; this.PartialResultCallbackMethod = partialResultCallbackMethod; this.Language = language; this.Hints = hints; this.BargeIn = bargeIn; this.Debug = debug; this.ActionOnEmptyResult = actionOnEmptyResult; this.SpeechModel = speechModel; this.Enhanced = enhanced; }