Exemplo n.º 1
0
 /// <summary>
 /// Create a new <Sms/> element and append it as a child of this element.
 /// </summary>
 /// <param name="message"> Message body, the body of the TwiML Element. </param>
 /// <param name="to"> Number to send message to </param>
 /// <param name="from"> Number to send message from </param>
 /// <param name="action"> Action URL </param>
 /// <param name="method"> Action URL method </param>
 /// <param name="statusCallback"> Status callback URL </param>
 public VoiceResponse Sms(string message = null, 
     Types.PhoneNumber to = null,
     Types.PhoneNumber from = null,
     Uri action = null,
     Twilio.Http.HttpMethod method = null,
     Uri statusCallback = null)
 {
     var newChild = new Sms(message, to, from, action, method, statusCallback);
     this.Append(newChild);
     return this;
 }
Exemplo n.º 2
0
 public VoiceResponse Sms(Sms sms)
 {
     this.Append(sms);
     return this;
 }