コード例 #1
0
ファイル: Gather.cs プロジェクト: garethpaul/twilio-csharp
        /// <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
ファイル: Say.cs プロジェクト: jhabjan/twilio-csharp
 /// <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;
 }