예제 #1
0
        /// <summary>
        /// Create a new <Say/> element and append it as a child of this element.
        /// </summary>
        /// <param name="message"> Message to say, the body of the TwiML Element. </param>
        /// <param name="voice"> Voice to use </param>
        /// <param name="loop"> Times to loop message </param>
        /// <param name="language"> Message langauge </param>
        public Gather Say(string message            = null,
                          Say.VoiceEnum voice       = null,
                          int?loop                  = null,
                          Say.LanguageEnum language = null)
        {
            var newChild = new Say(message, voice, loop, language);

            this.Append(newChild);
            return(this);
        }
예제 #2
0
 /// <summary>
 /// Create a new Say
 /// </summary>
 /// <param name="message"> Message to say, the body of the TwiML Element. </param>
 /// <param name="voice"> Voice to use </param>
 /// <param name="loop"> Times to loop message </param>
 /// <param name="language"> Message langauge </param>
 public Say(string message            = null,
            Say.VoiceEnum voice       = null,
            int?loop                  = null,
            Say.LanguageEnum language = null) : base("Say")
 {
     this.Message  = message;
     this.Voice    = voice;
     this.Loop     = loop;
     this.Language = language;
 }