Inheritance: ELement
Example #1
0
        /// <summary>
        /// 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. 
        /// </summary>
        /// <param name="action">URL where data will be sent</param>
        /// <returns></returns>
        public static Gather Create(string action)
        {
            var gather = new Gather();
            gather.Action = action;

            return gather;
        }
Example #2
0
        /// <summary>
        /// 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. 
        /// </summary>
        /// <param name="action">URL where the gathered digits will be sent for further processing.</param>
        /// <param name="method">Method used to request the action URL.</param>
        /// <param name="timeout">The number of seconds Gather should wait for digits to be entered before requesting the action URL. Timeout resets with each new digit input.</param>
        /// <param name="finishOnKey">The key a caller can press to end the Gather.</param>
        /// <param name="numDigits">The maximum number of digits to Gather.</param>
        /// <returns></returns>
        public static Gather Create(string action, HttpMethod? method, long? timeout, string finishOnKey, long? numDigits)
        {
            Gather gather = new Gather();

            gather.Action = action;
            gather.Method = method == null ? null : method.ToString();
            gather.Timeout = timeout == null ? null : timeout.ToString();
            gather.FinishOnKey = finishOnKey;
            gather.NumDigits = numDigits == null ? null : timeout.ToString();

            return gather;
        }
Example #3
0
 /// <summary>
 /// 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. 
 /// </summary>
 /// <param name="gather">Gather object</param>
 /// <returns></returns>
 public Response Gather(Gather gather)
 {
     Elements.Add(gather);
     return this;
 }