From 875f97cd1bfab556fad7e2c8fa43c181d0aaa04a Mon Sep 17 00:00:00 2001 From: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com> Date: Tue, 23 May 2023 20:02:34 -0400 Subject: [PATCH] improve-twiml-xml-docs --- src/Twilio/TwiML/Fax/Receive.cs | 68 +-- src/Twilio/TwiML/FaxResponse.cs | 50 +- src/Twilio/TwiML/Messaging/Body.cs | 40 +- src/Twilio/TwiML/Messaging/Media.cs | 40 +- src/Twilio/TwiML/Messaging/Message.cs | 103 ++-- src/Twilio/TwiML/Messaging/Redirect.cs | 51 +- src/Twilio/TwiML/MessagingResponse.cs | 66 +-- src/Twilio/TwiML/Voice/Application.cs | 126 ++--- src/Twilio/TwiML/Voice/ApplicationSid.cs | 40 +- src/Twilio/TwiML/Voice/Autopilot.cs | 40 +- src/Twilio/TwiML/Voice/Client.cs | 109 ++-- src/Twilio/TwiML/Voice/Conference.cs | 192 +++---- src/Twilio/TwiML/Voice/Config.cs | 47 +- src/Twilio/TwiML/Voice/Connect.cs | 157 +++--- src/Twilio/TwiML/Voice/Conversation.cs | 139 +++-- src/Twilio/TwiML/Voice/Dial.cs | 410 +++++++-------- src/Twilio/TwiML/Voice/Echo.cs | 30 +- src/Twilio/TwiML/Voice/Enqueue.cs | 105 ++-- src/Twilio/TwiML/Voice/Gather.cs | 212 ++++---- src/Twilio/TwiML/Voice/Hangup.cs | 44 +- src/Twilio/TwiML/Voice/Identity.cs | 40 +- src/Twilio/TwiML/Voice/Leave.cs | 30 +- src/Twilio/TwiML/Voice/Number.cs | 149 +++--- src/Twilio/TwiML/Voice/Parameter.cs | 47 +- src/Twilio/TwiML/Voice/Pause.cs | 40 +- src/Twilio/TwiML/Voice/Pay.cs | 213 ++++---- src/Twilio/TwiML/Voice/Play.cs | 58 +-- src/Twilio/TwiML/Voice/Prompt.cs | 129 ++--- src/Twilio/TwiML/Voice/Queue.cs | 72 +-- src/Twilio/TwiML/Voice/Record.cs | 121 ++--- src/Twilio/TwiML/Voice/Redirect.cs | 51 +- src/Twilio/TwiML/Voice/Refer.cs | 65 +-- src/Twilio/TwiML/Voice/ReferSip.cs | 40 +- src/Twilio/TwiML/Voice/Reject.cs | 54 +- src/Twilio/TwiML/Voice/Room.cs | 51 +- src/Twilio/TwiML/Voice/Say.cs | 319 +++++------- src/Twilio/TwiML/Voice/Sim.cs | 40 +- src/Twilio/TwiML/Voice/Sip.cs | 149 +++--- src/Twilio/TwiML/Voice/Siprec.cs | 68 +-- src/Twilio/TwiML/Voice/Sms.cs | 79 ++- src/Twilio/TwiML/Voice/SsmlBreak.cs | 50 +- src/Twilio/TwiML/Voice/SsmlEmphasis.cs | 269 ++++------ src/Twilio/TwiML/Voice/SsmlLang.cs | 305 +++++------ src/Twilio/TwiML/Voice/SsmlP.cs | 276 ++++------ src/Twilio/TwiML/Voice/SsmlPhoneme.cs | 58 +-- src/Twilio/TwiML/Voice/SsmlProsody.cs | 323 +++++------- src/Twilio/TwiML/Voice/SsmlS.cs | 258 ++++------ src/Twilio/TwiML/Voice/SsmlSayAs.cs | 58 +-- src/Twilio/TwiML/Voice/SsmlSub.cs | 54 +- src/Twilio/TwiML/Voice/SsmlW.cs | 222 ++++---- src/Twilio/TwiML/Voice/Start.cs | 85 ++-- src/Twilio/TwiML/Voice/Stop.cs | 68 +-- src/Twilio/TwiML/Voice/Stream.cs | 89 ++-- src/Twilio/TwiML/Voice/Task.cs | 61 +-- src/Twilio/TwiML/Voice/VirtualAgent.cs | 96 ++-- src/Twilio/TwiML/VoiceResponse.cs | 479 ++++++++---------- test/Twilio.Test/TwiML/ApplicationSidTest.cs | 8 +- test/Twilio.Test/TwiML/ApplicationTest.cs | 10 +- test/Twilio.Test/TwiML/AutopilotTest.cs | 8 +- test/Twilio.Test/TwiML/BodyTest.cs | 8 +- test/Twilio.Test/TwiML/ClientTest.cs | 10 +- test/Twilio.Test/TwiML/ConferenceTest.cs | 12 +- test/Twilio.Test/TwiML/ConfigTest.cs | 8 +- test/Twilio.Test/TwiML/ConnectTest.cs | 12 +- test/Twilio.Test/TwiML/ConversationTest.cs | 12 +- test/Twilio.Test/TwiML/DialTest.cs | 22 +- test/Twilio.Test/TwiML/EchoTest.cs | 8 +- test/Twilio.Test/TwiML/EnqueueTest.cs | 8 +- test/Twilio.Test/TwiML/FaxResponseTest.cs | 8 +- test/Twilio.Test/TwiML/GatherTest.cs | 10 +- test/Twilio.Test/TwiML/HangupTest.cs | 8 +- test/Twilio.Test/TwiML/IdentityTest.cs | 8 +- test/Twilio.Test/TwiML/LeaveTest.cs | 8 +- test/Twilio.Test/TwiML/MediaTest.cs | 8 +- test/Twilio.Test/TwiML/MessageTest.cs | 8 +- .../TwiML/MessagingResponseTest.cs | 8 +- test/Twilio.Test/TwiML/NumberTest.cs | 10 +- test/Twilio.Test/TwiML/ParameterTest.cs | 8 +- test/Twilio.Test/TwiML/PauseTest.cs | 8 +- test/Twilio.Test/TwiML/PayTest.cs | 16 +- test/Twilio.Test/TwiML/PlayTest.cs | 8 +- test/Twilio.Test/TwiML/PromptTest.cs | 14 +- test/Twilio.Test/TwiML/QueueTest.cs | 8 +- test/Twilio.Test/TwiML/ReceiveTest.cs | 8 +- test/Twilio.Test/TwiML/RecordTest.cs | 10 +- test/Twilio.Test/TwiML/RedirectTest.cs | 8 +- test/Twilio.Test/TwiML/ReferSipTest.cs | 8 +- test/Twilio.Test/TwiML/ReferTest.cs | 8 +- test/Twilio.Test/TwiML/RejectTest.cs | 8 +- test/Twilio.Test/TwiML/RoomTest.cs | 8 +- test/Twilio.Test/TwiML/SayTest.cs | 8 +- test/Twilio.Test/TwiML/SimTest.cs | 8 +- test/Twilio.Test/TwiML/SipTest.cs | 10 +- test/Twilio.Test/TwiML/SiprecTest.cs | 8 +- test/Twilio.Test/TwiML/SmsTest.cs | 8 +- test/Twilio.Test/TwiML/SsmlBreakTest.cs | 8 +- test/Twilio.Test/TwiML/SsmlEmphasisTest.cs | 8 +- test/Twilio.Test/TwiML/SsmlLangTest.cs | 8 +- test/Twilio.Test/TwiML/SsmlPTest.cs | 8 +- test/Twilio.Test/TwiML/SsmlPhonemeTest.cs | 8 +- test/Twilio.Test/TwiML/SsmlProsodyTest.cs | 8 +- test/Twilio.Test/TwiML/SsmlSTest.cs | 8 +- test/Twilio.Test/TwiML/SsmlSayAsTest.cs | 8 +- test/Twilio.Test/TwiML/SsmlSubTest.cs | 8 +- test/Twilio.Test/TwiML/SsmlWTest.cs | 8 +- test/Twilio.Test/TwiML/StartTest.cs | 8 +- test/Twilio.Test/TwiML/StopTest.cs | 8 +- test/Twilio.Test/TwiML/StreamTest.cs | 8 +- test/Twilio.Test/TwiML/TaskTest.cs | 8 +- test/Twilio.Test/TwiML/VirtualAgentTest.cs | 8 +- test/Twilio.Test/TwiML/VoiceResponseTest.cs | 22 +- 111 files changed, 2854 insertions(+), 4287 deletions(-) diff --git a/src/Twilio/TwiML/Fax/Receive.cs b/src/Twilio/TwiML/Fax/Receive.cs index a30217243..973a0cf8c 100644 --- a/src/Twilio/TwiML/Fax/Receive.cs +++ b/src/Twilio/TwiML/Fax/Receive.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -14,9 +14,7 @@ namespace Twilio.TwiML.Fax { - /// - /// Receive TwiML Verb - /// + /// Receive TwiML Verb public class Receive : TwiML { public sealed class MediaTypeEnum : StringEnum @@ -46,35 +44,27 @@ public static implicit operator PageSizeEnum(string value) public static readonly PageSizeEnum A4 = new PageSizeEnum("a4"); } - /// - /// Receive action URL - /// + /// Receive action URL public Uri Action { get; set; } - /// - /// Receive action URL method - /// + + /// Receive action URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// The media type used to store media in the fax media store - /// + + /// The media type used to store media in the fax media store public Receive.MediaTypeEnum MediaType { get; set; } - /// - /// What size to interpret received pages as - /// + + /// What size to interpret received pages as public Receive.PageSizeEnum PageSize { get; set; } - /// - /// Whether or not to store received media in the fax media store - /// + + /// Whether or not to store received media in the fax media store public bool? StoreMedia { get; set; } - /// - /// Create a new Receive - /// - /// Receive action URL - /// Receive action URL method - /// The media type used to store media in the fax media store - /// What size to interpret received pages as - /// Whether or not to store received media in the fax media store + /// Create a new Receive + /// Receive action URL + /// Receive action URL method + /// The media type used to store media in the fax media store + /// What size to interpret received pages as + /// Whether or not to store received media in the fax media store public Receive(Uri action = null, Twilio.Http.HttpMethod method = null, Receive.MediaTypeEnum mediaType = null, @@ -88,9 +78,7 @@ public Receive(Uri action = null, this.StoreMedia = storeMedia; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -117,20 +105,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Receive Append(TwiML childElem) { return (Receive) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Receive SetOption(string key, object value) { return (Receive) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/FaxResponse.cs b/src/Twilio/TwiML/FaxResponse.cs index 107a913a4..f9de4d77f 100644 --- a/src/Twilio/TwiML/FaxResponse.cs +++ b/src/Twilio/TwiML/FaxResponse.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.IO; @@ -13,26 +13,20 @@ namespace Twilio.TwiML { - /// - /// Response TwiML for Faxes - /// + /// Response TwiML for Faxes public class FaxResponse : TwiML { - /// - /// Create a new FaxResponse - /// + /// Create a new FaxResponse public FaxResponse() : base("Response") { } - /// - /// Create a new element and append it as a child of this element. - /// - /// Receive action URL - /// Receive action URL method - /// The media type used to store media in the fax media store - /// What size to interpret received pages as - /// Whether or not to store received media in the fax media store + /// Create a new <Receive/> element and append it as a child of this element. + /// Receive action URL + /// Receive action URL method + /// The media type used to store media in the fax media store + /// What size to interpret received pages as + /// Whether or not to store received media in the fax media store public FaxResponse Receive(Uri action = null, Twilio.Http.HttpMethod method = null, Receive.MediaTypeEnum mediaType = null, @@ -44,10 +38,8 @@ public FaxResponse Receive(Uri action = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Receive instance. + /// Append a <Receive/> element as a child of this element + /// A Receive instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public FaxResponse Receive(Receive receive) { @@ -55,20 +47,16 @@ public FaxResponse Receive(Receive receive) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new FaxResponse Append(TwiML childElem) { return (FaxResponse) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new FaxResponse SetOption(string key, object value) { return (FaxResponse) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Messaging/Body.cs b/src/Twilio/TwiML/Messaging/Body.cs index 06e6fafc8..104906ada 100644 --- a/src/Twilio/TwiML/Messaging/Body.cs +++ b/src/Twilio/TwiML/Messaging/Body.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.IO; using System.Text; @@ -10,47 +10,35 @@ namespace Twilio.TwiML.Messaging { - /// - /// Body TwiML Noun - /// + /// Body TwiML Noun public class Body : TwiML { - /// - /// Message Body - /// + /// Message Body public string Message { get; set; } - /// - /// Create a new Body - /// - /// Message Body, the body of the TwiML Element. + /// Create a new Body + /// Message Body, the body of the TwiML Element. public Body(string message = null) : base("Body") { this.Message = message; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Message != null ? this.Message : string.Empty; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Body Append(TwiML childElem) { return (Body) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Body SetOption(string key, object value) { return (Body) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Messaging/Media.cs b/src/Twilio/TwiML/Messaging/Media.cs index f8184b565..efbeaea23 100644 --- a/src/Twilio/TwiML/Messaging/Media.cs +++ b/src/Twilio/TwiML/Messaging/Media.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.IO; @@ -12,47 +12,35 @@ namespace Twilio.TwiML.Messaging { - /// - /// Media TwiML Noun - /// + /// Media TwiML Noun public class Media : TwiML { - /// - /// Media URL - /// + /// Media URL public Uri Url { get; set; } - /// - /// Create a new Media - /// - /// Media URL, the body of the TwiML Element. + /// Create a new Media + /// Media URL, the body of the TwiML Element. public Media(Uri url = null) : base("Media") { this.Url = url; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Url != null ? Serializers.Url(this.Url) : string.Empty; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Media Append(TwiML childElem) { return (Media) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Media SetOption(string key, object value) { return (Media) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Messaging/Message.cs b/src/Twilio/TwiML/Messaging/Message.cs index 85ffda8eb..ff8a952ec 100644 --- a/src/Twilio/TwiML/Messaging/Message.cs +++ b/src/Twilio/TwiML/Messaging/Message.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -13,45 +13,34 @@ namespace Twilio.TwiML.Messaging { - /// - /// Message TwiML Verb - /// + /// Message TwiML Verb public class Message : TwiML { - /// - /// Message Body - /// + /// Message Body public string BodyAttribute { get; set; } - /// - /// Phone Number to send Message to - /// + + /// Phone Number to send Message to public string To { get; set; } - /// - /// Phone Number to send Message from - /// + + /// Phone Number to send Message from public string From { get; set; } - /// - /// Action URL - /// + + /// Action URL public Uri Action { get; set; } - /// - /// Action URL Method - /// + + /// Action URL Method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Status callback URL. Deprecated in favor of action. - /// + + /// Status callback URL. Deprecated in favor of action. public Uri StatusCallback { get; set; } - /// - /// Create a new Message - /// - /// Message Body, the body of the TwiML Element. - /// Phone Number to send Message to. Also accepts stringified Types.PhoneNumber - /// Phone Number to send Message from. Also accepts stringified Types.PhoneNumber - /// Action URL - /// Action URL Method - /// Status callback URL. Deprecated in favor of action. + /// Create a new Message + /// Message Body, the body of the TwiML Element. + /// Phone Number to send Message to. Also accepts stringified Types.PhoneNumber + /// Phone Number to send Message from. Also accepts stringified Types.PhoneNumber + /// Action URL + /// Action URL Method + /// Status callback URL. Deprecated in favor of action. public Message(string body = null, string to = null, string from = null, @@ -67,17 +56,13 @@ public Message(string body = null, this.StatusCallback = statusCallback; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.BodyAttribute != null ? this.BodyAttribute : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -104,10 +89,8 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Message Body, the body of the TwiML Element. + /// Create a new <Body/> element and append it as a child of this element. + /// Message Body, the body of the TwiML Element. public Message Body(string message = null) { var newChild = new Body(message); @@ -115,10 +98,8 @@ public Message Body(string message = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Body instance. + /// Append a <Body/> element as a child of this element + /// A Body instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Message Body(Body body) { @@ -126,10 +107,8 @@ public Message Body(Body body) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Media URL, the body of the TwiML Element. + /// Create a new <Media/> element and append it as a child of this element. + /// Media URL, the body of the TwiML Element. public Message Media(Uri url = null) { var newChild = new Media(url); @@ -137,10 +116,8 @@ public Message Media(Uri url = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Media instance. + /// Append a <Media/> element as a child of this element + /// A Media instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Message Media(Media media) { @@ -148,20 +125,16 @@ public Message Media(Media media) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Message Append(TwiML childElem) { return (Message) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Message SetOption(string key, object value) { return (Message) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Messaging/Redirect.cs b/src/Twilio/TwiML/Messaging/Redirect.cs index 2a7647caf..c47cfdf04 100644 --- a/src/Twilio/TwiML/Messaging/Redirect.cs +++ b/src/Twilio/TwiML/Messaging/Redirect.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -13,42 +13,31 @@ namespace Twilio.TwiML.Messaging { - /// - /// Redirect TwiML Verb - /// + /// Redirect TwiML Verb public class Redirect : TwiML { - /// - /// Redirect URL - /// + /// Redirect URL public Uri Url { get; set; } - /// - /// Redirect URL method - /// + + /// Redirect URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Create a new Redirect - /// - /// Redirect URL, the body of the TwiML Element. - /// Redirect URL method + /// Create a new Redirect + /// Redirect URL, the body of the TwiML Element. + /// Redirect URL method public Redirect(Uri url = null, Twilio.Http.HttpMethod method = null) : base("Redirect") { this.Url = url; this.Method = method; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Url != null ? Serializers.Url(this.Url) : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -59,20 +48,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Redirect Append(TwiML childElem) { return (Redirect) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Redirect SetOption(string key, object value) { return (Redirect) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/MessagingResponse.cs b/src/Twilio/TwiML/MessagingResponse.cs index ef6d3462b..7f1a726d0 100644 --- a/src/Twilio/TwiML/MessagingResponse.cs +++ b/src/Twilio/TwiML/MessagingResponse.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.IO; @@ -13,27 +13,21 @@ namespace Twilio.TwiML { - /// - /// Response TwiML for Messages - /// + /// Response TwiML for Messages public class MessagingResponse : TwiML { - /// - /// Create a new MessagingResponse - /// + /// Create a new MessagingResponse public MessagingResponse() : base("Response") { } - /// - /// Create a new element and append it as a child of this element. - /// - /// Message Body, the body of the TwiML Element. - /// Phone Number to send Message to. Also accepts stringified Types.PhoneNumber - /// Phone Number to send Message from. Also accepts stringified Types.PhoneNumber - /// Action URL - /// Action URL Method - /// Status callback URL. Deprecated in favor of action. + /// Create a new <Message/> element and append it as a child of this element. + /// Message Body, the body of the TwiML Element. + /// Phone Number to send Message to. Also accepts stringified Types.PhoneNumber + /// Phone Number to send Message from. Also accepts stringified Types.PhoneNumber + /// Action URL + /// Action URL Method + /// Status callback URL. Deprecated in favor of action. public MessagingResponse Message(string body = null, string to = null, string from = null, @@ -46,10 +40,8 @@ public MessagingResponse Message(string body = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Message instance. + /// Append a <Message/> element as a child of this element + /// A Message instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public MessagingResponse Message(Message message) { @@ -57,11 +49,9 @@ public MessagingResponse Message(Message message) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Redirect URL, the body of the TwiML Element. - /// Redirect URL method + /// Create a new <Redirect/> element and append it as a child of this element. + /// Redirect URL, the body of the TwiML Element. + /// Redirect URL method public MessagingResponse Redirect(Uri url = null, Twilio.Http.HttpMethod method = null) { var newChild = new Redirect(url, method); @@ -69,10 +59,8 @@ public MessagingResponse Redirect(Uri url = null, Twilio.Http.HttpMethod method return this; } - /// - /// Append a element as a child of this element - /// - /// A Redirect instance. + /// Append a <Redirect/> element as a child of this element + /// A Redirect instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public MessagingResponse Redirect(Redirect redirect) { @@ -80,20 +68,16 @@ public MessagingResponse Redirect(Redirect redirect) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new MessagingResponse Append(TwiML childElem) { return (MessagingResponse) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new MessagingResponse SetOption(string key, object value) { return (MessagingResponse) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Application.cs b/src/Twilio/TwiML/Voice/Application.cs index 6ff3eba1d..e3c47bac2 100644 --- a/src/Twilio/TwiML/Voice/Application.cs +++ b/src/Twilio/TwiML/Voice/Application.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -15,9 +15,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Application TwiML Noun - /// + /// Application TwiML Noun public class Application : TwiML { public sealed class EventEnum : StringEnum @@ -35,55 +33,45 @@ public static implicit operator EventEnum(string value) public static readonly EventEnum Completed = new EventEnum("completed"); } - /// - /// Application sid - /// + /// Application sid public string ApplicationSidAttribute { get; set; } - /// - /// TwiML URL - /// + + /// TwiML URL public Uri Url { get; set; } - /// - /// TwiML URL Method - /// + + /// TwiML URL Method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Events to trigger status callback - /// - public List StatusCallbackEvent { get; set; } - /// - /// Status Callback URL - /// + + /// Events to trigger status callback + public IEnumerable StatusCallbackEvent { get; set; } + + /// Status Callback URL public Uri StatusCallback { get; set; } - /// - /// Status Callback URL Method - /// + + /// Status Callback URL Method public Twilio.Http.HttpMethod StatusCallbackMethod { get; set; } - /// - /// Identity of the customer calling application - /// + + /// Identity of the customer calling application public string CustomerId { get; set; } - /// - /// Copy parent call To field to called application side, otherwise use the application sid as To field - /// + + /// Copy parent call To field to called application side, otherwise use the application sid as To field public bool? CopyParentTo { get; set; } - /// - /// Create a new Application - /// - /// Application sid, the body of the TwiML Element. - /// TwiML URL - /// TwiML URL Method - /// Events to trigger status callback - /// Status Callback URL - /// Status Callback URL Method - /// Identity of the customer calling application - /// Copy parent call To field to called application side, otherwise use the application sid - /// as To field + /// Create a new Application + /// Application sid, the body of the TwiML Element. + /// TwiML URL + /// TwiML URL Method + /// Events to trigger status callback + /// Status Callback URL + /// Status Callback URL Method + /// Identity of the customer calling application + /// + /// Copy parent call To field to called application side, otherwise use the application sid as To field + /// public Application(string applicationSid = null, Uri url = null, Twilio.Http.HttpMethod method = null, - List statusCallbackEvent = null, + IEnumerable statusCallbackEvent = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null, string customerId = null, @@ -99,17 +87,13 @@ public Application(string applicationSid = null, this.CopyParentTo = copyParentTo; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.ApplicationSidAttribute != null ? this.ApplicationSidAttribute : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -144,10 +128,8 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Application sid to dial, the body of the TwiML Element. + /// Create a new <ApplicationSid/> element and append it as a child of this element. + /// Application sid to dial, the body of the TwiML Element. public Application ApplicationSid(string sid = null) { var newChild = new ApplicationSid(sid); @@ -155,10 +137,8 @@ public Application ApplicationSid(string sid = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A ApplicationSid instance. + /// Append a <ApplicationSid/> element as a child of this element + /// A ApplicationSid instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Application ApplicationSid(ApplicationSid applicationSid) { @@ -166,11 +146,9 @@ public Application ApplicationSid(ApplicationSid applicationSid) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// The name of the custom parameter - /// The value of the custom parameter + /// Create a new <Parameter/> element and append it as a child of this element. + /// The name of the custom parameter + /// The value of the custom parameter public Application Parameter(string name = null, string value = null) { var newChild = new Parameter(name, value); @@ -178,10 +156,8 @@ public Application Parameter(string name = null, string value = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Parameter instance. + /// Append a <Parameter/> element as a child of this element + /// A Parameter instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Application Parameter(Parameter parameter) { @@ -189,20 +165,16 @@ public Application Parameter(Parameter parameter) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Application Append(TwiML childElem) { return (Application) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Application SetOption(string key, object value) { return (Application) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/ApplicationSid.cs b/src/Twilio/TwiML/Voice/ApplicationSid.cs index 3fb57e8f2..84f85fbe5 100644 --- a/src/Twilio/TwiML/Voice/ApplicationSid.cs +++ b/src/Twilio/TwiML/Voice/ApplicationSid.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.IO; using System.Text; @@ -10,47 +10,35 @@ namespace Twilio.TwiML.Voice { - /// - /// ApplicationSid TwiML Noun - /// + /// ApplicationSid TwiML Noun public class ApplicationSid : TwiML { - /// - /// Application sid to dial - /// + /// Application sid to dial public string Sid { get; set; } - /// - /// Create a new ApplicationSid - /// - /// Application sid to dial, the body of the TwiML Element. + /// Create a new ApplicationSid + /// Application sid to dial, the body of the TwiML Element. public ApplicationSid(string sid = null) : base("ApplicationSid") { this.Sid = sid; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Sid != null ? this.Sid : string.Empty; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new ApplicationSid Append(TwiML childElem) { return (ApplicationSid) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new ApplicationSid SetOption(string key, object value) { return (ApplicationSid) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Autopilot.cs b/src/Twilio/TwiML/Voice/Autopilot.cs index b81d49d1e..e4dfd3029 100644 --- a/src/Twilio/TwiML/Voice/Autopilot.cs +++ b/src/Twilio/TwiML/Voice/Autopilot.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.IO; using System.Text; @@ -10,47 +10,35 @@ namespace Twilio.TwiML.Voice { - /// - /// Autopilot TwiML Noun - /// + /// Autopilot TwiML Noun public class Autopilot : TwiML { - /// - /// Autopilot assistant sid or unique name - /// + /// Autopilot assistant sid or unique name public string Name { get; set; } - /// - /// Create a new Autopilot - /// - /// Autopilot assistant sid or unique name, the body of the TwiML Element. + /// Create a new Autopilot + /// Autopilot assistant sid or unique name, the body of the TwiML Element. public Autopilot(string name = null) : base("Autopilot") { this.Name = name; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Name != null ? this.Name : string.Empty; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Autopilot Append(TwiML childElem) { return (Autopilot) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Autopilot SetOption(string key, object value) { return (Autopilot) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Client.cs b/src/Twilio/TwiML/Voice/Client.cs index 7096b05db..f5d95e6f9 100644 --- a/src/Twilio/TwiML/Voice/Client.cs +++ b/src/Twilio/TwiML/Voice/Client.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -15,9 +15,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Client TwiML Noun - /// + /// Client TwiML Noun public class Client : TwiML { public sealed class EventEnum : StringEnum @@ -35,44 +33,35 @@ public static implicit operator EventEnum(string value) public static readonly EventEnum Completed = new EventEnum("completed"); } - /// - /// Client identity - /// + /// Client identity public string IdentityAttribute { get; set; } - /// - /// Client URL - /// + + /// Client URL public Uri Url { get; set; } - /// - /// Client URL Method - /// + + /// Client URL Method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Events to trigger status callback - /// - public List StatusCallbackEvent { get; set; } - /// - /// Status Callback URL - /// + + /// Events to trigger status callback + public IEnumerable StatusCallbackEvent { get; set; } + + /// Status Callback URL public Uri StatusCallback { get; set; } - /// - /// Status Callback URL Method - /// + + /// Status Callback URL Method public Twilio.Http.HttpMethod StatusCallbackMethod { get; set; } - /// - /// Create a new Client - /// - /// Client identity, the body of the TwiML Element. - /// Client URL - /// Client URL Method - /// Events to trigger status callback - /// Status Callback URL - /// Status Callback URL Method + /// Create a new Client + /// Client identity, the body of the TwiML Element. + /// Client URL + /// Client URL Method + /// Events to trigger status callback + /// Status Callback URL + /// Status Callback URL Method public Client(string identity = null, Uri url = null, Twilio.Http.HttpMethod method = null, - List statusCallbackEvent = null, + IEnumerable statusCallbackEvent = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null) : base("Client") { @@ -84,17 +73,13 @@ public Client(string identity = null, this.StatusCallbackMethod = statusCallbackMethod; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.IdentityAttribute != null ? this.IdentityAttribute : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -121,10 +106,8 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Identity of the client to dial, the body of the TwiML Element. + /// Create a new <Identity/> element and append it as a child of this element. + /// Identity of the client to dial, the body of the TwiML Element. public Client Identity(string clientIdentity = null) { var newChild = new Identity(clientIdentity); @@ -132,10 +115,8 @@ public Client Identity(string clientIdentity = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Identity instance. + /// Append a <Identity/> element as a child of this element + /// A Identity instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Client Identity(Identity identity) { @@ -143,11 +124,9 @@ public Client Identity(Identity identity) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// The name of the custom parameter - /// The value of the custom parameter + /// Create a new <Parameter/> element and append it as a child of this element. + /// The name of the custom parameter + /// The value of the custom parameter public Client Parameter(string name = null, string value = null) { var newChild = new Parameter(name, value); @@ -155,10 +134,8 @@ public Client Parameter(string name = null, string value = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Parameter instance. + /// Append a <Parameter/> element as a child of this element + /// A Parameter instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Client Parameter(Parameter parameter) { @@ -166,20 +143,16 @@ public Client Parameter(Parameter parameter) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Client Append(TwiML childElem) { return (Client) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Client SetOption(string key, object value) { return (Client) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Conference.cs b/src/Twilio/TwiML/Voice/Conference.cs index f88d7814d..f660801db 100644 --- a/src/Twilio/TwiML/Voice/Conference.cs +++ b/src/Twilio/TwiML/Voice/Conference.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -15,9 +15,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Conference TwiML Noun - /// + /// Conference TwiML Noun public class Conference : TwiML { public sealed class BeepEnum : StringEnum @@ -128,115 +126,91 @@ public static implicit operator JitterBufferSizeEnum(string value) public static readonly JitterBufferSizeEnum Off = new JitterBufferSizeEnum("off"); } - /// - /// Conference name - /// + /// Conference name public string Name { get; set; } - /// - /// Join the conference muted - /// + + /// Join the conference muted public bool? Muted { get; set; } - /// - /// Play beep when joining - /// + + /// Play beep when joining public Conference.BeepEnum Beep { get; set; } - /// - /// Start the conference on enter - /// + + /// Start the conference on enter public bool? StartConferenceOnEnter { get; set; } - /// - /// End the conferenceon exit - /// + + /// End the conferenceon exit public bool? EndConferenceOnExit { get; set; } - /// - /// Wait URL - /// + + /// Wait URL public Uri WaitUrl { get; set; } - /// - /// Wait URL method - /// + + /// Wait URL method public Twilio.Http.HttpMethod WaitMethod { get; set; } - /// - /// Maximum number of participants - /// + + /// Maximum number of participants public int? MaxParticipants { get; set; } - /// - /// Record the conference - /// + + /// Record the conference public Conference.RecordEnum Record { get; set; } - /// - /// Conference region - /// + + /// Conference region public Conference.RegionEnum Region { get; set; } - /// - /// Call coach - /// + + /// Call coach public string Coach { get; set; } - /// - /// Trim the conference recording - /// + + /// Trim the conference recording public Conference.TrimEnum Trim { get; set; } - /// - /// Events to call status callback URL - /// - public List StatusCallbackEvent { get; set; } - /// - /// Status callback URL - /// + + /// Events to call status callback URL + public IEnumerable StatusCallbackEvent { get; set; } + + /// Status callback URL public Uri StatusCallback { get; set; } - /// - /// Status callback URL method - /// + + /// Status callback URL method public Twilio.Http.HttpMethod StatusCallbackMethod { get; set; } - /// - /// Recording status callback URL - /// + + /// Recording status callback URL public Uri RecordingStatusCallback { get; set; } - /// - /// Recording status callback URL method - /// + + /// Recording status callback URL method public Twilio.Http.HttpMethod RecordingStatusCallbackMethod { get; set; } - /// - /// Recording status callback events - /// - public List RecordingStatusCallbackEvent { get; set; } - /// - /// Event callback URL - /// + + /// Recording status callback events + public IEnumerable RecordingStatusCallbackEvent { get; set; } + + /// Event callback URL public Uri EventCallbackUrl { get; set; } - /// - /// Size of jitter buffer for participant - /// + + /// Size of jitter buffer for participant public Conference.JitterBufferSizeEnum JitterBufferSize { get; set; } - /// - /// A label for participant - /// + + /// A label for participant public string ParticipantLabel { get; set; } - /// - /// Create a new Conference - /// - /// Conference name, the body of the TwiML Element. - /// Join the conference muted - /// Play beep when joining - /// Start the conference on enter - /// End the conferenceon exit - /// Wait URL - /// Wait URL method - /// Maximum number of participants - /// Record the conference - /// Conference region - /// Call coach - /// Trim the conference recording - /// Events to call status callback URL - /// Status callback URL - /// Status callback URL method - /// Recording status callback URL - /// Recording status callback URL method - /// Recording status callback events - /// Event callback URL - /// Size of jitter buffer for participant - /// A label for participant + /// Create a new Conference + /// Conference name, the body of the TwiML Element. + /// Join the conference muted + /// Play beep when joining + /// Start the conference on enter + /// End the conferenceon exit + /// Wait URL + /// Wait URL method + /// Maximum number of participants + /// Record the conference + /// Conference region + /// Call coach + /// Trim the conference recording + /// Events to call status callback URL + /// Status callback URL + /// Status callback URL method + /// Recording status callback URL + /// Recording status callback URL method + /// Recording status callback events + /// Event callback URL + /// Size of jitter buffer for participant + /// A label for participant public Conference(string name = null, bool? muted = null, Conference.BeepEnum beep = null, @@ -249,12 +223,12 @@ public Conference(string name = null, Conference.RegionEnum region = null, string coach = null, Conference.TrimEnum trim = null, - List statusCallbackEvent = null, + IEnumerable statusCallbackEvent = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null, Uri recordingStatusCallback = null, Twilio.Http.HttpMethod recordingStatusCallbackMethod = null, - List recordingStatusCallbackEvent = null, + IEnumerable recordingStatusCallbackEvent = null, Uri eventCallbackUrl = null, Conference.JitterBufferSizeEnum jitterBufferSize = null, string participantLabel = null) : base("Conference") @@ -282,17 +256,13 @@ public Conference(string name = null, this.ParticipantLabel = participantLabel; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Name != null ? this.Name : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -379,20 +349,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Conference Append(TwiML childElem) { return (Conference) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Conference SetOption(string key, object value) { return (Conference) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Config.cs b/src/Twilio/TwiML/Voice/Config.cs index 6e1ba86a0..73a54ec62 100644 --- a/src/Twilio/TwiML/Voice/Config.cs +++ b/src/Twilio/TwiML/Voice/Config.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -11,34 +11,25 @@ namespace Twilio.TwiML.Voice { - /// - /// Config TwiML Noun - /// + /// Config TwiML Noun public class Config : TwiML { - /// - /// The name of the custom config - /// + /// The name of the custom config public string Name { get; set; } - /// - /// The value of the custom config - /// + + /// The value of the custom config public string Value { get; set; } - /// - /// Create a new Config - /// - /// The name of the custom config - /// The value of the custom config + /// Create a new Config + /// The name of the custom config + /// The value of the custom config public Config(string name = null, string value = null) : base("Config") { this.Name = name; this.Value = value; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -53,20 +44,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Config Append(TwiML childElem) { return (Config) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Config SetOption(string key, object value) { return (Config) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Connect.cs b/src/Twilio/TwiML/Voice/Connect.cs index 13f51e0f2..2e7c8fea8 100644 --- a/src/Twilio/TwiML/Voice/Connect.cs +++ b/src/Twilio/TwiML/Voice/Connect.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -13,34 +13,25 @@ namespace Twilio.TwiML.Voice { - /// - /// Connect TwiML Verb - /// + /// Connect TwiML Verb public class Connect : TwiML { - /// - /// Action URL - /// + /// Action URL public Uri Action { get; set; } - /// - /// Action URL method - /// + + /// Action URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Create a new Connect - /// - /// Action URL - /// Action URL method + /// Create a new Connect + /// Action URL + /// Action URL method public Connect(Uri action = null, Twilio.Http.HttpMethod method = null) : base("Connect") { this.Action = action; this.Method = method; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -55,11 +46,9 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Room name, the body of the TwiML Element. - /// Participant identity when connecting to the Room + /// Create a new <Room/> element and append it as a child of this element. + /// Room name, the body of the TwiML Element. + /// Participant identity when connecting to the Room public Connect Room(string name = null, string participantIdentity = null) { var newChild = new Room(name, participantIdentity); @@ -67,10 +56,8 @@ public Connect Room(string name = null, string participantIdentity = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Room instance. + /// Append a <Room/> element as a child of this element + /// A Room instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Connect Room(Room room) { @@ -78,10 +65,8 @@ public Connect Room(Room room) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Autopilot assistant sid or unique name, the body of the TwiML Element. + /// Create a new <Autopilot/> element and append it as a child of this element. + /// Autopilot assistant sid or unique name, the body of the TwiML Element. public Connect Autopilot(string name = null) { var newChild = new Autopilot(name); @@ -89,10 +74,8 @@ public Connect Autopilot(string name = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Autopilot instance. + /// Append a <Autopilot/> element as a child of this element + /// A Autopilot instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Connect Autopilot(Autopilot autopilot) { @@ -100,15 +83,13 @@ public Connect Autopilot(Autopilot autopilot) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Friendly name given to the Stream - /// Unique name for Stream Connector - /// URL of the remote service where the Stream is routed - /// Track to be streamed to remote service - /// Status Callback URL - /// Status Callback URL method + /// Create a new <Stream/> element and append it as a child of this element. + /// Friendly name given to the Stream + /// Unique name for Stream Connector + /// URL of the remote service where the Stream is routed + /// Track to be streamed to remote service + /// Status Callback URL + /// Status Callback URL method public Connect Stream(string name = null, string connectorName = null, string url = null, @@ -121,10 +102,8 @@ public Connect Stream(string name = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Stream instance. + /// Append a <Stream/> element as a child of this element + /// A Stream instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Connect Stream(Stream stream) { @@ -132,14 +111,12 @@ public Connect Stream(Stream stream) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Defines the conversation profile Dialogflow needs to use - /// Language to be used by Dialogflow to transcribe speech - /// Whether sentiment analysis needs to be enabled or not - /// URL to post status callbacks from Twilio - /// HTTP method to use when requesting the status callback URL + /// Create a new <VirtualAgent/> element and append it as a child of this element. + /// Defines the conversation profile Dialogflow needs to use + /// Language to be used by Dialogflow to transcribe speech + /// Whether sentiment analysis needs to be enabled or not + /// URL to post status callbacks from Twilio + /// HTTP method to use when requesting the status callback URL public Connect VirtualAgent(string connectorName = null, string language = null, bool? sentimentAnalysis = null, @@ -157,10 +134,8 @@ public Connect VirtualAgent(string connectorName = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A VirtualAgent instance. + /// Append a <VirtualAgent/> element as a child of this element + /// A VirtualAgent instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Connect VirtualAgent(VirtualAgent virtualAgent) { @@ -168,23 +143,21 @@ public Connect VirtualAgent(VirtualAgent virtualAgent) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Service instance Sid - /// Inbound autocreation - /// Routing assignment timeout - /// Inbound timeout - /// TwiML URL - /// TwiML URL method - /// Record - /// Trim - /// Recording status callback URL - /// Recording status callback URL method - /// Recording status callback events - /// Status callback URL - /// Status callback URL method - /// Events to call status callback URL + /// Create a new <Conversation/> element and append it as a child of this element. + /// Service instance Sid + /// Inbound autocreation + /// Routing assignment timeout + /// Inbound timeout + /// TwiML URL + /// TwiML URL method + /// Record + /// Trim + /// Recording status callback URL + /// Recording status callback URL method + /// Recording status callback events + /// Status callback URL + /// Status callback URL method + /// Events to call status callback URL public Connect Conversation(string serviceInstanceSid = null, bool? inboundAutocreation = null, int? routingAssignmentTimeout = null, @@ -195,10 +168,10 @@ public Connect Conversation(string serviceInstanceSid = null, Conversation.TrimEnum trim = null, Uri recordingStatusCallback = null, Twilio.Http.HttpMethod recordingStatusCallbackMethod = null, - List recordingStatusCallbackEvent = null, + IEnumerable recordingStatusCallbackEvent = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null, - List statusCallbackEvent = null) + IEnumerable statusCallbackEvent = null) { var newChild = new Conversation( serviceInstanceSid, @@ -220,10 +193,8 @@ public Connect Conversation(string serviceInstanceSid = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Conversation instance. + /// Append a <Conversation/> element as a child of this element + /// A Conversation instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Connect Conversation(Conversation conversation) { @@ -231,20 +202,16 @@ public Connect Conversation(Conversation conversation) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Connect Append(TwiML childElem) { return (Connect) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Connect SetOption(string key, object value) { return (Connect) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Conversation.cs b/src/Twilio/TwiML/Voice/Conversation.cs index e631ff4b2..5be08ec64 100644 --- a/src/Twilio/TwiML/Voice/Conversation.cs +++ b/src/Twilio/TwiML/Voice/Conversation.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -15,9 +15,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Conversation TwiML Noun - /// + /// Conversation TwiML Noun public class Conversation : TwiML { public sealed class RecordEnum : StringEnum @@ -80,80 +78,63 @@ public static implicit operator EventEnum(string value) public static readonly EventEnum CallCompleted = new EventEnum("call-completed"); } - /// - /// Service instance Sid - /// + /// Service instance Sid public string ServiceInstanceSid { get; set; } - /// - /// Inbound autocreation - /// + + /// Inbound autocreation public bool? InboundAutocreation { get; set; } - /// - /// Routing assignment timeout - /// + + /// Routing assignment timeout public int? RoutingAssignmentTimeout { get; set; } - /// - /// Inbound timeout - /// + + /// Inbound timeout public int? InboundTimeout { get; set; } - /// - /// TwiML URL - /// + + /// TwiML URL public Uri Url { get; set; } - /// - /// TwiML URL method - /// + + /// TwiML URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Record - /// + + /// Record public Conversation.RecordEnum Record { get; set; } - /// - /// Trim - /// + + /// Trim public Conversation.TrimEnum Trim { get; set; } - /// - /// Recording status callback URL - /// + + /// Recording status callback URL public Uri RecordingStatusCallback { get; set; } - /// - /// Recording status callback URL method - /// + + /// Recording status callback URL method public Twilio.Http.HttpMethod RecordingStatusCallbackMethod { get; set; } - /// - /// Recording status callback events - /// - public List RecordingStatusCallbackEvent { get; set; } - /// - /// Status callback URL - /// + + /// Recording status callback events + public IEnumerable RecordingStatusCallbackEvent { get; set; } + + /// Status callback URL public Uri StatusCallback { get; set; } - /// - /// Status callback URL method - /// + + /// Status callback URL method public Twilio.Http.HttpMethod StatusCallbackMethod { get; set; } - /// - /// Events to call status callback URL - /// - public List StatusCallbackEvent { get; set; } - /// - /// Create a new Conversation - /// - /// Service instance Sid - /// Inbound autocreation - /// Routing assignment timeout - /// Inbound timeout - /// TwiML URL - /// TwiML URL method - /// Record - /// Trim - /// Recording status callback URL - /// Recording status callback URL method - /// Recording status callback events - /// Status callback URL - /// Status callback URL method - /// Events to call status callback URL + /// Events to call status callback URL + public IEnumerable StatusCallbackEvent { get; set; } + + /// Create a new Conversation + /// Service instance Sid + /// Inbound autocreation + /// Routing assignment timeout + /// Inbound timeout + /// TwiML URL + /// TwiML URL method + /// Record + /// Trim + /// Recording status callback URL + /// Recording status callback URL method + /// Recording status callback events + /// Status callback URL + /// Status callback URL method + /// Events to call status callback URL public Conversation(string serviceInstanceSid = null, bool? inboundAutocreation = null, int? routingAssignmentTimeout = null, @@ -164,10 +145,10 @@ public Conversation(string serviceInstanceSid = null, Conversation.TrimEnum trim = null, Uri recordingStatusCallback = null, Twilio.Http.HttpMethod recordingStatusCallbackMethod = null, - List recordingStatusCallbackEvent = null, + IEnumerable recordingStatusCallbackEvent = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null, - List statusCallbackEvent = null) : base("Conversation") + IEnumerable statusCallbackEvent = null) : base("Conversation") { this.ServiceInstanceSid = serviceInstanceSid; this.InboundAutocreation = inboundAutocreation; @@ -185,9 +166,7 @@ public Conversation(string serviceInstanceSid = null, this.StatusCallbackEvent = statusCallbackEvent; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -250,20 +229,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Conversation Append(TwiML childElem) { return (Conversation) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Conversation SetOption(string key, object value) { return (Conversation) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Dial.cs b/src/Twilio/TwiML/Voice/Dial.cs index 3bcd7c193..c4df16ef4 100644 --- a/src/Twilio/TwiML/Voice/Dial.cs +++ b/src/Twilio/TwiML/Voice/Dial.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -15,9 +15,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Dial TwiML Verb - /// + /// Dial TwiML Verb public class Dial : TwiML { public sealed class TrimEnum : StringEnum @@ -128,103 +126,86 @@ public static implicit operator RecordingTrackEnum(string value) public static readonly RecordingTrackEnum Outbound = new RecordingTrackEnum("outbound"); } - /// - /// Phone number to dial - /// + /// Phone number to dial public string NumberAttribute { get; set; } - /// - /// Action URL - /// + + /// Action URL public Uri Action { get; set; } - /// - /// Action URL method - /// + + /// Action URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Time to wait for answer - /// + + /// Time to wait for answer public int? Timeout { get; set; } - /// - /// Hangup call on star press - /// + + /// Hangup call on star press public bool? HangupOnStar { get; set; } - /// - /// Max time length - /// + + /// Max time length public int? TimeLimit { get; set; } - /// - /// Caller ID to display - /// + + /// Caller ID to display public string CallerId { get; set; } - /// - /// Record the call - /// + + /// Record the call public Dial.RecordEnum Record { get; set; } - /// - /// Trim the recording - /// + + /// Trim the recording public Dial.TrimEnum Trim { get; set; } - /// - /// Recording status callback URL - /// + + /// Recording status callback URL public Uri RecordingStatusCallback { get; set; } - /// - /// Recording status callback URL method - /// + + /// Recording status callback URL method public Twilio.Http.HttpMethod RecordingStatusCallbackMethod { get; set; } - /// - /// Recording status callback events - /// - public List RecordingStatusCallbackEvent { get; set; } - /// - /// Preserve the ringing behavior of the inbound call until the Dialed call picks up - /// + + /// Recording status callback events + public IEnumerable RecordingStatusCallbackEvent { get; set; } + + /// Preserve the ringing behavior of the inbound call until the Dialed call picks up public bool? AnswerOnBridge { get; set; } - /// - /// Ringtone allows you to override the ringback tone that Twilio will play back to the caller while executing the Dial - /// + + /// Ringtone allows you to override the ringback tone that Twilio will play back to the caller while executing the Dial public Dial.RingToneEnum RingTone { get; set; } - /// - /// To indicate which audio track should be recorded - /// + + /// To indicate which audio track should be recorded public Dial.RecordingTrackEnum RecordingTrack { get; set; } - /// - /// Used to determine if child TwiML nouns should be dialed in order, one after the other (sequential) or dial all at once (parallel). Default is false, parallel - /// + + /// Used to determine if child TwiML nouns should be dialed in order, one after the other (sequential) or dial all at once (parallel). Default is false, parallel public bool? Sequential { get; set; } - /// - /// Webhook that will receive future SIP REFER requests - /// + + /// Webhook that will receive future SIP REFER requests public Uri ReferUrl { get; set; } - /// - /// The HTTP method to use for the refer Webhook - /// + + /// The HTTP method to use for the refer Webhook public Twilio.Http.HttpMethod ReferMethod { get; set; } - /// - /// Create a new Dial - /// - /// Phone number to dial, the body of the TwiML Element. - /// Action URL - /// Action URL method - /// Time to wait for answer - /// Hangup call on star press - /// Max time length - /// Caller ID to display - /// Record the call - /// Trim the recording - /// Recording status callback URL - /// Recording status callback URL method - /// Recording status callback events - /// Preserve the ringing behavior of the inbound call until the Dialed call picks up - /// - /// Ringtone allows you to override the ringback tone that Twilio will play back to the caller - /// while executing the Dial - /// To indicate which audio track should be recorded - /// Used to determine if child TwiML nouns should be dialed in order, one after the other - /// (sequential) or dial all at once (parallel). Default is false, parallel - /// Webhook that will receive future SIP REFER requests - /// The HTTP method to use for the refer Webhook + /// Create a new Dial + /// Phone number to dial, the body of the TwiML Element. + /// Action URL + /// Action URL method + /// Time to wait for answer + /// Hangup call on star press + /// Max time length + /// Caller ID to display + /// Record the call + /// Trim the recording + /// Recording status callback URL + /// Recording status callback URL method + /// Recording status callback events + /// + /// Preserve the ringing behavior of the inbound call until the Dialed call picks up + /// + /// + /// Ringtone allows you to override the ringback tone that Twilio will play back to the caller while executing the Dial + /// + /// To indicate which audio track should be recorded + /// + /// Used to determine if child TwiML nouns should be dialed in order, one after the other (sequential) or dial all at + /// once (parallel). Default is false, parallel + /// + /// Webhook that will receive future SIP REFER requests + /// The HTTP method to use for the refer Webhook public Dial(string number = null, Uri action = null, Twilio.Http.HttpMethod method = null, @@ -236,7 +217,7 @@ public Dial(string number = null, Dial.TrimEnum trim = null, Uri recordingStatusCallback = null, Twilio.Http.HttpMethod recordingStatusCallbackMethod = null, - List recordingStatusCallbackEvent = null, + IEnumerable recordingStatusCallbackEvent = null, bool? answerOnBridge = null, Dial.RingToneEnum ringTone = null, Dial.RecordingTrackEnum recordingTrack = null, @@ -264,17 +245,13 @@ public Dial(string number = null, this.ReferMethod = referMethod; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.NumberAttribute != null ? this.NumberAttribute : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -349,19 +326,17 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Client identity, the body of the TwiML Element. - /// Client URL - /// Client URL Method - /// Events to trigger status callback - /// Status Callback URL - /// Status Callback URL Method + /// Create a new <Client/> element and append it as a child of this element. + /// Client identity, the body of the TwiML Element. + /// Client URL + /// Client URL Method + /// Events to trigger status callback + /// Status Callback URL + /// Status Callback URL Method public Dial Client(string identity = null, Uri url = null, Twilio.Http.HttpMethod method = null, - List statusCallbackEvent = null, + IEnumerable statusCallbackEvent = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null) { @@ -377,10 +352,8 @@ public Dial Client(string identity = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Client instance. + /// Append a <Client/> element as a child of this element + /// A Client instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Dial Client(Client client) { @@ -388,30 +361,28 @@ public Dial Client(Client client) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Conference name, the body of the TwiML Element. - /// Join the conference muted - /// Play beep when joining - /// Start the conference on enter - /// End the conferenceon exit - /// Wait URL - /// Wait URL method - /// Maximum number of participants - /// Record the conference - /// Conference region - /// Call coach - /// Trim the conference recording - /// Events to call status callback URL - /// Status callback URL - /// Status callback URL method - /// Recording status callback URL - /// Recording status callback URL method - /// Recording status callback events - /// Event callback URL - /// Size of jitter buffer for participant - /// A label for participant + /// Create a new <Conference/> element and append it as a child of this element. + /// Conference name, the body of the TwiML Element. + /// Join the conference muted + /// Play beep when joining + /// Start the conference on enter + /// End the conferenceon exit + /// Wait URL + /// Wait URL method + /// Maximum number of participants + /// Record the conference + /// Conference region + /// Call coach + /// Trim the conference recording + /// Events to call status callback URL + /// Status callback URL + /// Status callback URL method + /// Recording status callback URL + /// Recording status callback URL method + /// Recording status callback events + /// Event callback URL + /// Size of jitter buffer for participant + /// A label for participant public Dial Conference(string name = null, bool? muted = null, Conference.BeepEnum beep = null, @@ -424,12 +395,12 @@ public Dial Conference(string name = null, Conference.RegionEnum region = null, string coach = null, Conference.TrimEnum trim = null, - List statusCallbackEvent = null, + IEnumerable statusCallbackEvent = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null, Uri recordingStatusCallback = null, Twilio.Http.HttpMethod recordingStatusCallbackMethod = null, - List recordingStatusCallbackEvent = null, + IEnumerable recordingStatusCallbackEvent = null, Uri eventCallbackUrl = null, Conference.JitterBufferSizeEnum jitterBufferSize = null, string participantLabel = null) @@ -461,10 +432,8 @@ public Dial Conference(string name = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Conference instance. + /// Append a <Conference/> element as a child of this element + /// A Conference instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Dial Conference(Conference conference) { @@ -472,30 +441,29 @@ public Dial Conference(Conference conference) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Phone Number to dial, the body of the TwiML Element. - /// DTMF tones to play when the call is answered - /// TwiML URL - /// TwiML URL method - /// Events to call status callback - /// Status callback URL - /// Status callback URL method - /// BYOC trunk SID (Beta) - /// Enable machine detection or end of greeting detection - /// HTTP Method to use with amd_status_callback - /// The URL we should call to send amd status information to your application - /// Number of seconds to wait for machine detection - /// Number of milliseconds for measuring stick for the length of the - /// speech activity - /// Number of milliseconds of silence after speech activity - /// Number of milliseconds of initial silence + /// Create a new <Number/> element and append it as a child of this element. + /// Phone Number to dial, the body of the TwiML Element. + /// DTMF tones to play when the call is answered + /// TwiML URL + /// TwiML URL method + /// Events to call status callback + /// Status callback URL + /// Status callback URL method + /// BYOC trunk SID (Beta) + /// Enable machine detection or end of greeting detection + /// HTTP Method to use with amd_status_callback + /// The URL we should call to send amd status information to your application + /// Number of seconds to wait for machine detection + /// + /// Number of milliseconds for measuring stick for the length of the speech activity + /// + /// Number of milliseconds of silence after speech activity + /// Number of milliseconds of initial silence public Dial Number(Types.PhoneNumber phoneNumber = null, string sendDigits = null, Uri url = null, Twilio.Http.HttpMethod method = null, - List statusCallbackEvent = null, + IEnumerable statusCallbackEvent = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null, string byoc = null, @@ -528,10 +496,8 @@ public Dial Number(Types.PhoneNumber phoneNumber = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Number instance. + /// Append a <Number/> element as a child of this element + /// A Number instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Dial Number(Number number) { @@ -539,14 +505,12 @@ public Dial Number(Number number) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Queue name, the body of the TwiML Element. - /// Action URL - /// Action URL method - /// TaskRouter Reservation SID - /// TaskRouter Activity SID + /// Create a new <Queue/> element and append it as a child of this element. + /// Queue name, the body of the TwiML Element. + /// Action URL + /// Action URL method + /// TaskRouter Reservation SID + /// TaskRouter Activity SID public Dial Queue(string name = null, Uri url = null, Twilio.Http.HttpMethod method = null, @@ -558,10 +522,8 @@ public Dial Queue(string name = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Queue instance. + /// Append a <Queue/> element as a child of this element + /// A Queue instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Dial Queue(Queue queue) { @@ -569,10 +531,8 @@ public Dial Queue(Queue queue) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// SIM SID, the body of the TwiML Element. + /// Create a new <Sim/> element and append it as a child of this element. + /// SIM SID, the body of the TwiML Element. public Dial Sim(string simSid = null) { var newChild = new Sim(simSid); @@ -580,10 +540,8 @@ public Dial Sim(string simSid = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Sim instance. + /// Append a <Sim/> element as a child of this element + /// A Sim instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Dial Sim(Sim sim) { @@ -591,31 +549,30 @@ public Dial Sim(Sim sim) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// SIP URL, the body of the TwiML Element. - /// SIP Username - /// SIP Password - /// Action URL - /// Action URL method - /// Status callback events - /// Status callback URL - /// Status callback URL method - /// Enable machine detection or end of greeting detection - /// HTTP Method to use with amd_status_callback - /// The URL we should call to send amd status information to your application - /// Number of seconds to wait for machine detection - /// Number of milliseconds for measuring stick for the length of the - /// speech activity - /// Number of milliseconds of silence after speech activity - /// Number of milliseconds of initial silence + /// Create a new <Sip/> element and append it as a child of this element. + /// SIP URL, the body of the TwiML Element. + /// SIP Username + /// SIP Password + /// Action URL + /// Action URL method + /// Status callback events + /// Status callback URL + /// Status callback URL method + /// Enable machine detection or end of greeting detection + /// HTTP Method to use with amd_status_callback + /// The URL we should call to send amd status information to your application + /// Number of seconds to wait for machine detection + /// + /// Number of milliseconds for measuring stick for the length of the speech activity + /// + /// Number of milliseconds of silence after speech activity + /// Number of milliseconds of initial silence public Dial Sip(Uri sipUrl = null, string username = null, string password = null, Uri url = null, Twilio.Http.HttpMethod method = null, - List statusCallbackEvent = null, + IEnumerable statusCallbackEvent = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null, string machineDetection = null, @@ -647,10 +604,8 @@ public Dial Sip(Uri sipUrl = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Sip instance. + /// Append a <Sip/> element as a child of this element + /// A Sip instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Dial Sip(Sip sip) { @@ -658,22 +613,21 @@ public Dial Sip(Sip sip) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Application sid, the body of the TwiML Element. - /// TwiML URL - /// TwiML URL Method - /// Events to trigger status callback - /// Status Callback URL - /// Status Callback URL Method - /// Identity of the customer calling application - /// Copy parent call To field to called application side, otherwise use the application sid - /// as To field + /// Create a new <Application/> element and append it as a child of this element. + /// Application sid, the body of the TwiML Element. + /// TwiML URL + /// TwiML URL Method + /// Events to trigger status callback + /// Status Callback URL + /// Status Callback URL Method + /// Identity of the customer calling application + /// + /// Copy parent call To field to called application side, otherwise use the application sid as To field + /// public Dial Application(string applicationSid = null, Uri url = null, Twilio.Http.HttpMethod method = null, - List statusCallbackEvent = null, + IEnumerable statusCallbackEvent = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null, string customerId = null, @@ -693,10 +647,8 @@ public Dial Application(string applicationSid = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Application instance. + /// Append a <Application/> element as a child of this element + /// A Application instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Dial Application(Application application) { @@ -704,20 +656,16 @@ public Dial Application(Application application) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Dial Append(TwiML childElem) { return (Dial) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Dial SetOption(string key, object value) { return (Dial) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Echo.cs b/src/Twilio/TwiML/Voice/Echo.cs index 551332ed5..f5a1cf12f 100644 --- a/src/Twilio/TwiML/Voice/Echo.cs +++ b/src/Twilio/TwiML/Voice/Echo.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.IO; using System.Text; @@ -10,32 +10,24 @@ namespace Twilio.TwiML.Voice { - /// - /// Echo TwiML Verb - /// + /// Echo TwiML Verb public class Echo : TwiML { - /// - /// Create a new Echo - /// + /// Create a new Echo public Echo() : base("Echo") { } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Echo Append(TwiML childElem) { return (Echo) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Echo SetOption(string key, object value) { return (Echo) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Enqueue.cs b/src/Twilio/TwiML/Voice/Enqueue.cs index 24d5013f3..2a61940aa 100644 --- a/src/Twilio/TwiML/Voice/Enqueue.cs +++ b/src/Twilio/TwiML/Voice/Enqueue.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -13,50 +13,38 @@ namespace Twilio.TwiML.Voice { - /// - /// Enqueue TwiML Noun - /// + /// Enqueue TwiML Noun public class Enqueue : TwiML { - /// - /// Friendly name - /// + /// Friendly name public string Name { get; set; } - /// - /// Action URL - /// + + /// Action URL public Uri Action { get; set; } - /// - /// Maximum size of queue - /// + + /// Maximum size of queue public int? MaxQueueSize { get; set; } - /// - /// Action URL method - /// + + /// Action URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Wait URL - /// + + /// Wait URL public Uri WaitUrl { get; set; } - /// - /// Wait URL method - /// + + /// Wait URL method public Twilio.Http.HttpMethod WaitUrlMethod { get; set; } - /// - /// TaskRouter Workflow SID - /// + + /// TaskRouter Workflow SID public string WorkflowSid { get; set; } - /// - /// Create a new Enqueue - /// - /// Friendly name, the body of the TwiML Element. - /// Action URL - /// Maximum size of queue - /// Action URL method - /// Wait URL - /// Wait URL method - /// TaskRouter Workflow SID + /// Create a new Enqueue + /// Friendly name, the body of the TwiML Element. + /// Action URL + /// Maximum size of queue + /// Action URL method + /// Wait URL + /// Wait URL method + /// TaskRouter Workflow SID public Enqueue(string name = null, Uri action = null, int? maxQueueSize = null, @@ -74,17 +62,13 @@ public Enqueue(string name = null, this.WorkflowSid = workflowSid; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Name != null ? this.Name : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -115,13 +99,12 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// TaskRouter task attributes, the body of the TwiML Element. Also accepts stringified object - /// - /// Task priority - /// Timeout associated with task + /// Create a new <Task/> element and append it as a child of this element. + /// + /// TaskRouter task attributes, the body of the TwiML Element. Also accepts stringified object + /// + /// Task priority + /// Timeout associated with task public Enqueue Task(string body = null, int? priority = null, int? timeout = null) { var newChild = new Task(body, priority, timeout); @@ -129,10 +112,8 @@ public Enqueue Task(string body = null, int? priority = null, int? timeout = nul return this; } - /// - /// Append a element as a child of this element - /// - /// A Task instance. + /// Append a <Task/> element as a child of this element + /// A Task instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Enqueue Task(Task task) { @@ -140,20 +121,16 @@ public Enqueue Task(Task task) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Enqueue Append(TwiML childElem) { return (Enqueue) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Enqueue SetOption(string key, object value) { return (Enqueue) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Gather.cs b/src/Twilio/TwiML/Voice/Gather.cs index 0e875d3c4..30e16d1c7 100644 --- a/src/Twilio/TwiML/Voice/Gather.cs +++ b/src/Twilio/TwiML/Voice/Gather.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -15,9 +15,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Gather TwiML Verb - /// + /// Gather TwiML Verb public class Gather : TwiML { public sealed class InputEnum : StringEnum @@ -190,102 +188,82 @@ public static implicit operator SpeechModelEnum(string value) public static readonly SpeechModelEnum ExperimentalUtterances = new SpeechModelEnum("experimental_utterances"); } - /// - /// Input type Twilio should accept - /// - public List Input { get; set; } - /// - /// Action URL - /// + /// Input type Twilio should accept + public IEnumerable Input { get; set; } + + /// Action URL public Uri Action { get; set; } - /// - /// Action URL method - /// + + /// Action URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Time to wait to gather input - /// + + /// Time to wait to gather input public int? Timeout { get; set; } - /// - /// Time to wait to gather speech input and it should be either auto or a positive integer. - /// + + /// Time to wait to gather speech input and it should be either auto or a positive integer. public string SpeechTimeout { get; set; } - /// - /// Max allowed time for speech input - /// + + /// Max allowed time for speech input public int? MaxSpeechTime { get; set; } - /// - /// Profanity Filter on speech - /// + + /// Profanity Filter on speech public bool? ProfanityFilter { get; set; } - /// - /// Finish gather on key - /// + + /// Finish gather on key public string FinishOnKey { get; set; } - /// - /// Number of digits to collect - /// + + /// Number of digits to collect public int? NumDigits { get; set; } - /// - /// Partial result callback URL - /// + + /// Partial result callback URL public Uri PartialResultCallback { get; set; } - /// - /// Partial result callback URL method - /// + + /// Partial result callback URL method public Twilio.Http.HttpMethod PartialResultCallbackMethod { get; set; } - /// - /// Language to use - /// + + /// Language to use public Gather.LanguageEnum Language { get; set; } - /// - /// Speech recognition hints - /// + + /// Speech recognition hints public string Hints { get; set; } - /// - /// Stop playing media upon speech - /// + + /// Stop playing media upon speech public bool? BargeIn { get; set; } - /// - /// Allow debug for gather - /// + + /// Allow debug for gather public bool? Debug { get; set; } - /// - /// Force webhook to the action URL event if there is no input - /// + + /// Force webhook to the action URL event if there is no input public bool? ActionOnEmptyResult { get; set; } - /// - /// Specify the model that is best suited for your use case - /// + + /// Specify the model that is best suited for your use case public Gather.SpeechModelEnum SpeechModel { get; set; } - /// - /// Use enhanced speech model - /// + + /// Use enhanced speech model public bool? Enhanced { get; set; } - /// - /// Create a new Gather - /// - /// Input type Twilio should accept - /// Action URL - /// Action URL method - /// Time to wait to gather input - /// Time to wait to gather speech input and it should be either auto or a positive - /// integer. - /// Max allowed time for speech input - /// Profanity Filter on speech - /// Finish gather on key - /// Number of digits to collect - /// Partial result callback URL - /// Partial result callback URL method - /// Language to use - /// Speech recognition hints - /// Stop playing media upon speech - /// Allow debug for gather - /// Force webhook to the action URL event if there is no input - /// Specify the model that is best suited for your use case - /// Use enhanced speech model - public Gather(List input = null, + /// Create a new Gather + /// Input type Twilio should accept + /// Action URL + /// Action URL method + /// Time to wait to gather input + /// + /// Time to wait to gather speech input and it should be either auto or a positive integer. + /// + /// Max allowed time for speech input + /// Profanity Filter on speech + /// Finish gather on key + /// Number of digits to collect + /// Partial result callback URL + /// Partial result callback URL method + /// Language to use + /// Speech recognition hints + /// Stop playing media upon speech + /// Allow debug for gather + /// Force webhook to the action URL event if there is no input + /// Specify the model that is best suited for your use case + /// Use enhanced speech model + public Gather(IEnumerable input = null, Uri action = null, Twilio.Http.HttpMethod method = null, int? timeout = null, @@ -324,9 +302,7 @@ public Gather(List input = null, this.Enhanced = enhanced; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -405,13 +381,11 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Message to say, the body of the TwiML Element. - /// Voice to use - /// Times to loop message - /// Message language + /// Create a new <Say/> element and append it as a child of this element. + /// Message to say, the body of the TwiML Element. + /// Voice to use + /// Times to loop message + /// Message language public Gather Say(string message = null, Say.VoiceEnum voice = null, int? loop = null, @@ -422,10 +396,8 @@ public Gather Say(string message = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Say instance. + /// Append a <Say/> element as a child of this element + /// A Say instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Gather Say(Say say) { @@ -433,10 +405,8 @@ public Gather Say(Say say) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Length in seconds to pause + /// Create a new <Pause/> element and append it as a child of this element. + /// Length in seconds to pause public Gather Pause(int? length = null) { var newChild = new Pause(length); @@ -444,10 +414,8 @@ public Gather Pause(int? length = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Pause instance. + /// Append a <Pause/> element as a child of this element + /// A Pause instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Gather Pause(Pause pause) { @@ -455,12 +423,10 @@ public Gather Pause(Pause pause) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Media URL, the body of the TwiML Element. - /// Times to loop media - /// Play DTMF tones for digits + /// Create a new <Play/> element and append it as a child of this element. + /// Media URL, the body of the TwiML Element. + /// Times to loop media + /// Play DTMF tones for digits public Gather Play(Uri url = null, int? loop = null, string digits = null) { var newChild = new Play(url, loop, digits); @@ -468,10 +434,8 @@ public Gather Play(Uri url = null, int? loop = null, string digits = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Play instance. + /// Append a <Play/> element as a child of this element + /// A Play instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Gather Play(Play play) { @@ -479,20 +443,16 @@ public Gather Play(Play play) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Gather Append(TwiML childElem) { return (Gather) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Gather SetOption(string key, object value) { return (Gather) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Hangup.cs b/src/Twilio/TwiML/Voice/Hangup.cs index b0858dc99..1e65d9287 100644 --- a/src/Twilio/TwiML/Voice/Hangup.cs +++ b/src/Twilio/TwiML/Voice/Hangup.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.IO; using System.Text; @@ -10,23 +10,17 @@ namespace Twilio.TwiML.Voice { - /// - /// Hangup TwiML Verb - /// + /// Hangup TwiML Verb public class Hangup : TwiML { - /// - /// Create a new Hangup - /// + /// Create a new Hangup public Hangup() : base("Hangup") { } - /// - /// Create a new element and append it as a child of this element. - /// - /// The name of the custom parameter - /// The value of the custom parameter + /// Create a new <Parameter/> element and append it as a child of this element. + /// The name of the custom parameter + /// The value of the custom parameter public Hangup Parameter(string name = null, string value = null) { var newChild = new Parameter(name, value); @@ -34,10 +28,8 @@ public Hangup Parameter(string name = null, string value = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Parameter instance. + /// Append a <Parameter/> element as a child of this element + /// A Parameter instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Hangup Parameter(Parameter parameter) { @@ -45,20 +37,16 @@ public Hangup Parameter(Parameter parameter) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Hangup Append(TwiML childElem) { return (Hangup) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Hangup SetOption(string key, object value) { return (Hangup) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Identity.cs b/src/Twilio/TwiML/Voice/Identity.cs index 063328535..7e14c0265 100644 --- a/src/Twilio/TwiML/Voice/Identity.cs +++ b/src/Twilio/TwiML/Voice/Identity.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.IO; using System.Text; @@ -10,47 +10,35 @@ namespace Twilio.TwiML.Voice { - /// - /// Identity TwiML Noun - /// + /// Identity TwiML Noun public class Identity : TwiML { - /// - /// Identity of the client to dial - /// + /// Identity of the client to dial public string ClientIdentity { get; set; } - /// - /// Create a new Identity - /// - /// Identity of the client to dial, the body of the TwiML Element. + /// Create a new Identity + /// Identity of the client to dial, the body of the TwiML Element. public Identity(string clientIdentity = null) : base("Identity") { this.ClientIdentity = clientIdentity; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.ClientIdentity != null ? this.ClientIdentity : string.Empty; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Identity Append(TwiML childElem) { return (Identity) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Identity SetOption(string key, object value) { return (Identity) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Leave.cs b/src/Twilio/TwiML/Voice/Leave.cs index 39690d168..b6cda487b 100644 --- a/src/Twilio/TwiML/Voice/Leave.cs +++ b/src/Twilio/TwiML/Voice/Leave.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.IO; using System.Text; @@ -10,32 +10,24 @@ namespace Twilio.TwiML.Voice { - /// - /// Leave TwiML Verb - /// + /// Leave TwiML Verb public class Leave : TwiML { - /// - /// Create a new Leave - /// + /// Create a new Leave public Leave() : base("Leave") { } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Leave Append(TwiML childElem) { return (Leave) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Leave SetOption(string key, object value) { return (Leave) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Number.cs b/src/Twilio/TwiML/Voice/Number.cs index 70a21cdb7..8b3bbd35e 100644 --- a/src/Twilio/TwiML/Voice/Number.cs +++ b/src/Twilio/TwiML/Voice/Number.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -15,9 +15,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Number TwiML Noun - /// + /// Number TwiML Noun public class Number : TwiML { public sealed class EventEnum : StringEnum @@ -35,91 +33,74 @@ public static implicit operator EventEnum(string value) public static readonly EventEnum Completed = new EventEnum("completed"); } - /// - /// Phone Number to dial - /// + /// Phone Number to dial public Types.PhoneNumber PhoneNumber { get; set; } - /// - /// DTMF tones to play when the call is answered - /// + + /// DTMF tones to play when the call is answered public string SendDigits { get; set; } - /// - /// TwiML URL - /// + + /// TwiML URL public Uri Url { get; set; } - /// - /// TwiML URL method - /// + + /// TwiML URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Events to call status callback - /// - public List StatusCallbackEvent { get; set; } - /// - /// Status callback URL - /// + + /// Events to call status callback + public IEnumerable StatusCallbackEvent { get; set; } + + /// Status callback URL public Uri StatusCallback { get; set; } - /// - /// Status callback URL method - /// + + /// Status callback URL method public Twilio.Http.HttpMethod StatusCallbackMethod { get; set; } - /// - /// BYOC trunk SID (Beta) - /// + + /// BYOC trunk SID (Beta) public string Byoc { get; set; } - /// - /// Enable machine detection or end of greeting detection - /// + + /// Enable machine detection or end of greeting detection public string MachineDetection { get; set; } - /// - /// HTTP Method to use with amd_status_callback - /// + + /// HTTP Method to use with amd_status_callback public Twilio.Http.HttpMethod AmdStatusCallbackMethod { get; set; } - /// - /// The URL we should call to send amd status information to your application - /// + + /// The URL we should call to send amd status information to your application public string AmdStatusCallback { get; set; } - /// - /// Number of seconds to wait for machine detection - /// + + /// Number of seconds to wait for machine detection public int? MachineDetectionTimeout { get; set; } - /// - /// Number of milliseconds for measuring stick for the length of the speech activity - /// + + /// Number of milliseconds for measuring stick for the length of the speech activity public int? MachineDetectionSpeechThreshold { get; set; } - /// - /// Number of milliseconds of silence after speech activity - /// + + /// Number of milliseconds of silence after speech activity public int? MachineDetectionSpeechEndThreshold { get; set; } - /// - /// Number of milliseconds of initial silence - /// + + /// Number of milliseconds of initial silence public int? MachineDetectionSilenceTimeout { get; set; } - /// - /// Create a new Number - /// - /// Phone Number to dial, the body of the TwiML Element. - /// DTMF tones to play when the call is answered - /// TwiML URL - /// TwiML URL method - /// Events to call status callback - /// Status callback URL - /// Status callback URL method - /// BYOC trunk SID (Beta) - /// Enable machine detection or end of greeting detection - /// HTTP Method to use with amd_status_callback - /// The URL we should call to send amd status information to your application - /// Number of seconds to wait for machine detection - /// Number of milliseconds for measuring stick for the length of the - /// speech activity - /// Number of milliseconds of silence after speech activity - /// Number of milliseconds of initial silence + /// Create a new Number + /// Phone Number to dial, the body of the TwiML Element. + /// DTMF tones to play when the call is answered + /// TwiML URL + /// TwiML URL method + /// Events to call status callback + /// Status callback URL + /// Status callback URL method + /// BYOC trunk SID (Beta) + /// Enable machine detection or end of greeting detection + /// HTTP Method to use with amd_status_callback + /// The URL we should call to send amd status information to your application + /// Number of seconds to wait for machine detection + /// + /// Number of milliseconds for measuring stick for the length of the speech activity + /// + /// Number of milliseconds of silence after speech activity + /// Number of milliseconds of initial silence public Number(Types.PhoneNumber phoneNumber = null, string sendDigits = null, Uri url = null, Twilio.Http.HttpMethod method = null, - List statusCallbackEvent = null, + IEnumerable statusCallbackEvent = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null, string byoc = null, @@ -148,17 +129,13 @@ public Number(Types.PhoneNumber phoneNumber = null, this.MachineDetectionSilenceTimeout = machineDetectionSilenceTimeout; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.PhoneNumber != null ? this.PhoneNumber.ToString() : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -221,20 +198,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Number Append(TwiML childElem) { return (Number) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Number SetOption(string key, object value) { return (Number) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Parameter.cs b/src/Twilio/TwiML/Voice/Parameter.cs index 4e09c9188..46c1e2450 100644 --- a/src/Twilio/TwiML/Voice/Parameter.cs +++ b/src/Twilio/TwiML/Voice/Parameter.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -11,34 +11,25 @@ namespace Twilio.TwiML.Voice { - /// - /// Parameter TwiML Noun - /// + /// Parameter TwiML Noun public class Parameter : TwiML { - /// - /// The name of the custom parameter - /// + /// The name of the custom parameter public string Name { get; set; } - /// - /// The value of the custom parameter - /// + + /// The value of the custom parameter public string Value { get; set; } - /// - /// Create a new Parameter - /// - /// The name of the custom parameter - /// The value of the custom parameter + /// Create a new Parameter + /// The name of the custom parameter + /// The value of the custom parameter public Parameter(string name = null, string value = null) : base("Parameter") { this.Name = name; this.Value = value; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -53,20 +44,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Parameter Append(TwiML childElem) { return (Parameter) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Parameter SetOption(string key, object value) { return (Parameter) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Pause.cs b/src/Twilio/TwiML/Voice/Pause.cs index b48553de1..e2ae1c408 100644 --- a/src/Twilio/TwiML/Voice/Pause.cs +++ b/src/Twilio/TwiML/Voice/Pause.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -11,28 +11,20 @@ namespace Twilio.TwiML.Voice { - /// - /// Pause TwiML Verb - /// + /// Pause TwiML Verb public class Pause : TwiML { - /// - /// Length in seconds to pause - /// + /// Length in seconds to pause public int? Length { get; set; } - /// - /// Create a new Pause - /// - /// Length in seconds to pause + /// Create a new Pause + /// Length in seconds to pause public Pause(int? length = null) : base("Pause") { this.Length = length; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -43,20 +35,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Pause Append(TwiML childElem) { return (Pause) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Pause SetOption(string key, object value) { return (Pause) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Pay.cs b/src/Twilio/TwiML/Voice/Pay.cs index fda708632..9d166ac46 100644 --- a/src/Twilio/TwiML/Voice/Pay.cs +++ b/src/Twilio/TwiML/Voice/Pay.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -15,9 +15,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Pay Twiml Verb - /// + /// Pay Twiml Verb public class Pay : TwiML { public sealed class InputEnum : StringEnum @@ -132,102 +130,84 @@ public static implicit operator PaymentMethodEnum(string value) public static readonly PaymentMethodEnum CreditCard = new PaymentMethodEnum("credit-card"); } - /// - /// Input type Twilio should accept - /// + /// Input type Twilio should accept public Pay.InputEnum Input { get; set; } - /// - /// Action URL - /// + + /// Action URL public Uri Action { get; set; } - /// - /// Bank account type for ach transactions. If set, payment method attribute must be provided and value should be set to ach-debit. defaults to consumer-checking - /// + + /// Bank account type for ach transactions. If set, payment method attribute must be provided and value should be set to ach-debit. defaults to consumer-checking public Pay.BankAccountTypeEnum BankAccountType { get; set; } - /// - /// Status callback URL - /// + + /// Status callback URL public Uri StatusCallback { get; set; } - /// - /// Status callback method - /// + + /// Status callback method public Pay.StatusCallbackMethodEnum StatusCallbackMethod { get; set; } - /// - /// Time to wait to gather input - /// + + /// Time to wait to gather input public int? Timeout { get; set; } - /// - /// Maximum number of allowed retries when gathering input - /// + + /// Maximum number of allowed retries when gathering input public int? MaxAttempts { get; set; } - /// - /// Prompt for security code - /// + + /// Prompt for security code public bool? SecurityCode { get; set; } - /// - /// Prompt for postal code and it should be true/false or default postal code - /// + + /// Prompt for postal code and it should be true/false or default postal code public string PostalCode { get; set; } - /// - /// Prompt for minimum postal code length - /// + + /// Prompt for minimum postal code length public int? MinPostalCodeLength { get; set; } - /// - /// Unique name for payment connector - /// + + /// Unique name for payment connector public string PaymentConnector { get; set; } - /// - /// Payment method to be used. defaults to credit-card - /// + + /// Payment method to be used. defaults to credit-card public Pay.PaymentMethodEnum PaymentMethod { get; set; } - /// - /// Type of token - /// + + /// Type of token public Pay.TokenTypeEnum TokenType { get; set; } - /// - /// Amount to process. If value is greater than 0 then make the payment else create a payment token - /// + + /// Amount to process. If value is greater than 0 then make the payment else create a payment token public string ChargeAmount { get; set; } - /// - /// Currency of the amount attribute - /// + + /// Currency of the amount attribute public string Currency { get; set; } - /// - /// Details regarding the payment - /// + + /// Details regarding the payment public string Description { get; set; } - /// - /// Comma separated accepted card types - /// - public List ValidCardTypes { get; set; } - /// - /// Language to use - /// + + /// Comma separated accepted card types + public IEnumerable ValidCardTypes { get; set; } + + /// Language to use public Pay.LanguageEnum Language { get; set; } - /// - /// Create a new Pay - /// - /// Input type Twilio should accept - /// Action URL - /// Bank account type for ach transactions. If set, payment method attribute must be - /// provided and value should be set to ach-debit. defaults to consumer-checking - /// Status callback URL - /// Status callback method - /// Time to wait to gather input - /// Maximum number of allowed retries when gathering input - /// Prompt for security code - /// Prompt for postal code and it should be true/false or default postal code - /// Prompt for minimum postal code length - /// Unique name for payment connector - /// Payment method to be used. defaults to credit-card - /// Type of token - /// Amount to process. If value is greater than 0 then make the payment else create a - /// payment token - /// Currency of the amount attribute - /// Details regarding the payment - /// Comma separated accepted card types - /// Language to use + /// Create a new Pay + /// Input type Twilio should accept + /// Action URL + /// + /// Bank account type for ach transactions. If set, payment method attribute must be provided and value should be set to + /// ach-debit. defaults to consumer-checking + /// + /// Status callback URL + /// Status callback method + /// Time to wait to gather input + /// Maximum number of allowed retries when gathering input + /// Prompt for security code + /// Prompt for postal code and it should be true/false or default postal code + /// Prompt for minimum postal code length + /// Unique name for payment connector + /// Payment method to be used. defaults to credit-card + /// Type of token + /// + /// Amount to process. If value is greater than 0 then make the payment else create a payment token + /// + /// Currency of the amount attribute + /// Details regarding the payment + /// Comma separated accepted card types + /// Language to use public Pay(Pay.InputEnum input = null, Uri action = null, Pay.BankAccountTypeEnum bankAccountType = null, @@ -244,7 +224,7 @@ public Pay(Pay.InputEnum input = null, string chargeAmount = null, string currency = null, string description = null, - List validCardTypes = null, + IEnumerable validCardTypes = null, Pay.LanguageEnum language = null) : base("Pay") { this.Input = input; @@ -267,9 +247,7 @@ public Pay(Pay.InputEnum input = null, this.Language = language; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -348,19 +326,18 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Name of the payment source data element - /// Type of error - /// Type of the credit card - /// Current attempt count - /// Require customer to input requested information twice and verify matching. - /// + /// Create a new <Prompt/> element and append it as a child of this element. + /// Name of the payment source data element + /// Type of error + /// Type of the credit card + /// Current attempt count + /// + /// Require customer to input requested information twice and verify matching. + /// public Pay Prompt(Prompt.ForEnum for_ = null, - List errorType = null, - List cardType = null, - List attempt = null, + IEnumerable errorType = null, + IEnumerable cardType = null, + IEnumerable attempt = null, bool? requireMatchingInputs = null) { var newChild = new Prompt(for_, errorType, cardType, attempt, requireMatchingInputs); @@ -368,10 +345,8 @@ public Pay Prompt(Prompt.ForEnum for_ = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Prompt instance. + /// Append a <Prompt/> element as a child of this element + /// A Prompt instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Pay Prompt(Prompt prompt) { @@ -379,11 +354,9 @@ public Pay Prompt(Prompt prompt) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// The name of the custom parameter - /// The value of the custom parameter + /// Create a new <Parameter/> element and append it as a child of this element. + /// The name of the custom parameter + /// The value of the custom parameter public Pay Parameter(string name = null, string value = null) { var newChild = new Parameter(name, value); @@ -391,10 +364,8 @@ public Pay Parameter(string name = null, string value = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Parameter instance. + /// Append a <Parameter/> element as a child of this element + /// A Parameter instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Pay Parameter(Parameter parameter) { @@ -402,20 +373,16 @@ public Pay Parameter(Parameter parameter) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Pay Append(TwiML childElem) { return (Pay) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Pay SetOption(string key, object value) { return (Pay) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Play.cs b/src/Twilio/TwiML/Voice/Play.cs index 6e9cefb47..0d9d6e9a8 100644 --- a/src/Twilio/TwiML/Voice/Play.cs +++ b/src/Twilio/TwiML/Voice/Play.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -13,30 +13,22 @@ namespace Twilio.TwiML.Voice { - /// - /// Play TwiML Verb - /// + /// Play TwiML Verb public class Play : TwiML { - /// - /// Media URL - /// + /// Media URL public Uri Url { get; set; } - /// - /// Times to loop media - /// + + /// Times to loop media public int? Loop { get; set; } - /// - /// Play DTMF tones for digits - /// + + /// Play DTMF tones for digits public string Digits { get; set; } - /// - /// Create a new Play - /// - /// Media URL, the body of the TwiML Element. - /// Times to loop media - /// Play DTMF tones for digits + /// Create a new Play + /// Media URL, the body of the TwiML Element. + /// Times to loop media + /// Play DTMF tones for digits public Play(Uri url = null, int? loop = null, string digits = null) : base("Play") { this.Url = url; @@ -44,17 +36,13 @@ public Play(Uri url = null, int? loop = null, string digits = null) : base("Play this.Digits = digits; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Url != null ? Serializers.Url(this.Url) : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -69,20 +57,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Play Append(TwiML childElem) { return (Play) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Play SetOption(string key, object value) { return (Play) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Prompt.cs b/src/Twilio/TwiML/Voice/Prompt.cs index c358cc8b8..afbea79cd 100644 --- a/src/Twilio/TwiML/Voice/Prompt.cs +++ b/src/Twilio/TwiML/Voice/Prompt.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -15,9 +15,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Prompt Twiml Verb - /// + /// Prompt Twiml Verb public class Prompt : TwiML { public sealed class ForEnum : StringEnum @@ -76,40 +74,33 @@ public static implicit operator CardTypeEnum(string value) public static readonly CardTypeEnum Enroute = new CardTypeEnum("enroute"); } - /// - /// Name of the payment source data element - /// + /// Name of the payment source data element public Prompt.ForEnum For_ { get; set; } - /// - /// Type of error - /// - public List ErrorType { get; set; } - /// - /// Type of the credit card - /// - public List CardType { get; set; } - /// - /// Current attempt count - /// - public List Attempt { get; set; } - /// - /// Require customer to input requested information twice and verify matching. - /// + + /// Type of error + public IEnumerable ErrorType { get; set; } + + /// Type of the credit card + public IEnumerable CardType { get; set; } + + /// Current attempt count + public IEnumerable Attempt { get; set; } + + /// Require customer to input requested information twice and verify matching. public bool? RequireMatchingInputs { get; set; } - /// - /// Create a new Prompt - /// - /// Name of the payment source data element - /// Type of error - /// Type of the credit card - /// Current attempt count - /// Require customer to input requested information twice and verify matching. - /// + /// Create a new Prompt + /// Name of the payment source data element + /// Type of error + /// Type of the credit card + /// Current attempt count + /// + /// Require customer to input requested information twice and verify matching. + /// public Prompt(Prompt.ForEnum for_ = null, - List errorType = null, - List cardType = null, - List attempt = null, + IEnumerable errorType = null, + IEnumerable cardType = null, + IEnumerable attempt = null, bool? requireMatchingInputs = null) : base("Prompt") { this.For_ = for_; @@ -119,9 +110,7 @@ public Prompt(Prompt.ForEnum for_ = null, this.RequireMatchingInputs = requireMatchingInputs; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -148,13 +137,11 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Message to say, the body of the TwiML Element. - /// Voice to use - /// Times to loop message - /// Message language + /// Create a new <Say/> element and append it as a child of this element. + /// Message to say, the body of the TwiML Element. + /// Voice to use + /// Times to loop message + /// Message language public Prompt Say(string message = null, Say.VoiceEnum voice = null, int? loop = null, @@ -165,10 +152,8 @@ public Prompt Say(string message = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Say instance. + /// Append a <Say/> element as a child of this element + /// A Say instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Prompt Say(Say say) { @@ -176,12 +161,10 @@ public Prompt Say(Say say) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Media URL, the body of the TwiML Element. - /// Times to loop media - /// Play DTMF tones for digits + /// Create a new <Play/> element and append it as a child of this element. + /// Media URL, the body of the TwiML Element. + /// Times to loop media + /// Play DTMF tones for digits public Prompt Play(Uri url = null, int? loop = null, string digits = null) { var newChild = new Play(url, loop, digits); @@ -189,10 +172,8 @@ public Prompt Play(Uri url = null, int? loop = null, string digits = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Play instance. + /// Append a <Play/> element as a child of this element + /// A Play instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Prompt Play(Play play) { @@ -200,10 +181,8 @@ public Prompt Play(Play play) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Length in seconds to pause + /// Create a new <Pause/> element and append it as a child of this element. + /// Length in seconds to pause public Prompt Pause(int? length = null) { var newChild = new Pause(length); @@ -211,10 +190,8 @@ public Prompt Pause(int? length = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Pause instance. + /// Append a <Pause/> element as a child of this element + /// A Pause instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Prompt Pause(Pause pause) { @@ -222,20 +199,16 @@ public Prompt Pause(Pause pause) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Prompt Append(TwiML childElem) { return (Prompt) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Prompt SetOption(string key, object value) { return (Prompt) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Queue.cs b/src/Twilio/TwiML/Voice/Queue.cs index 1330fc0cd..c0a1eb21d 100644 --- a/src/Twilio/TwiML/Voice/Queue.cs +++ b/src/Twilio/TwiML/Voice/Queue.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -13,40 +13,30 @@ namespace Twilio.TwiML.Voice { - /// - /// Queue TwiML Noun - /// + /// Queue TwiML Noun public class Queue : TwiML { - /// - /// Queue name - /// + /// Queue name public string Name { get; set; } - /// - /// Action URL - /// + + /// Action URL public Uri Url { get; set; } - /// - /// Action URL method - /// + + /// Action URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// TaskRouter Reservation SID - /// + + /// TaskRouter Reservation SID public string ReservationSid { get; set; } - /// - /// TaskRouter Activity SID - /// + + /// TaskRouter Activity SID public string PostWorkActivitySid { get; set; } - /// - /// Create a new Queue - /// - /// Queue name, the body of the TwiML Element. - /// Action URL - /// Action URL method - /// TaskRouter Reservation SID - /// TaskRouter Activity SID + /// Create a new Queue + /// Queue name, the body of the TwiML Element. + /// Action URL + /// Action URL method + /// TaskRouter Reservation SID + /// TaskRouter Activity SID public Queue(string name = null, Uri url = null, Twilio.Http.HttpMethod method = null, @@ -60,17 +50,13 @@ public Queue(string name = null, this.PostWorkActivitySid = postWorkActivitySid; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Name != null ? this.Name : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -93,20 +79,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Queue Append(TwiML childElem) { return (Queue) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Queue SetOption(string key, object value) { return (Queue) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Record.cs b/src/Twilio/TwiML/Voice/Record.cs index 9465cc79c..2cbdb8714 100644 --- a/src/Twilio/TwiML/Voice/Record.cs +++ b/src/Twilio/TwiML/Voice/Record.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -15,9 +15,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Record TwiML Verb - /// + /// Record TwiML Verb public class Record : TwiML { public sealed class TrimEnum : StringEnum @@ -47,70 +45,55 @@ public static implicit operator RecordingEventEnum(string value) public static readonly RecordingEventEnum Absent = new RecordingEventEnum("absent"); } - /// - /// Action URL - /// + /// Action URL public Uri Action { get; set; } - /// - /// Action URL method - /// + + /// Action URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Timeout to begin recording - /// + + /// Timeout to begin recording public int? Timeout { get; set; } - /// - /// Finish recording on key - /// + + /// Finish recording on key public string FinishOnKey { get; set; } - /// - /// Max time to record in seconds - /// + + /// Max time to record in seconds public int? MaxLength { get; set; } - /// - /// Play beep - /// + + /// Play beep public bool? PlayBeep { get; set; } - /// - /// Trim the recording - /// + + /// Trim the recording public Record.TrimEnum Trim { get; set; } - /// - /// Status callback URL - /// + + /// Status callback URL public Uri RecordingStatusCallback { get; set; } - /// - /// Status callback URL method - /// + + /// Status callback URL method public Twilio.Http.HttpMethod RecordingStatusCallbackMethod { get; set; } - /// - /// Recording status callback events - /// - public List RecordingStatusCallbackEvent { get; set; } - /// - /// Transcribe the recording - /// + + /// Recording status callback events + public IEnumerable RecordingStatusCallbackEvent { get; set; } + + /// Transcribe the recording public bool? Transcribe { get; set; } - /// - /// Transcribe callback URL - /// + + /// Transcribe callback URL public Uri TranscribeCallback { get; set; } - /// - /// Create a new Record - /// - /// Action URL - /// Action URL method - /// Timeout to begin recording - /// Finish recording on key - /// Max time to record in seconds - /// Play beep - /// Trim the recording - /// Status callback URL - /// Status callback URL method - /// Recording status callback events - /// Transcribe the recording - /// Transcribe callback URL + /// Create a new Record + /// Action URL + /// Action URL method + /// Timeout to begin recording + /// Finish recording on key + /// Max time to record in seconds + /// Play beep + /// Trim the recording + /// Status callback URL + /// Status callback URL method + /// Recording status callback events + /// Transcribe the recording + /// Transcribe callback URL public Record(Uri action = null, Twilio.Http.HttpMethod method = null, int? timeout = null, @@ -120,7 +103,7 @@ public Record(Uri action = null, Record.TrimEnum trim = null, Uri recordingStatusCallback = null, Twilio.Http.HttpMethod recordingStatusCallbackMethod = null, - List recordingStatusCallbackEvent = null, + IEnumerable recordingStatusCallbackEvent = null, bool? transcribe = null, Uri transcribeCallback = null) : base("Record") { @@ -138,9 +121,7 @@ public Record(Uri action = null, this.TranscribeCallback = transcribeCallback; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -195,20 +176,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Record Append(TwiML childElem) { return (Record) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Record SetOption(string key, object value) { return (Record) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Redirect.cs b/src/Twilio/TwiML/Voice/Redirect.cs index d5fb144a6..6333d3b47 100644 --- a/src/Twilio/TwiML/Voice/Redirect.cs +++ b/src/Twilio/TwiML/Voice/Redirect.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -13,42 +13,31 @@ namespace Twilio.TwiML.Voice { - /// - /// Redirect TwiML Verb - /// + /// Redirect TwiML Verb public class Redirect : TwiML { - /// - /// Redirect URL - /// + /// Redirect URL public Uri Url { get; set; } - /// - /// Redirect URL method - /// + + /// Redirect URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Create a new Redirect - /// - /// Redirect URL, the body of the TwiML Element. - /// Redirect URL method + /// Create a new Redirect + /// Redirect URL, the body of the TwiML Element. + /// Redirect URL method public Redirect(Uri url = null, Twilio.Http.HttpMethod method = null) : base("Redirect") { this.Url = url; this.Method = method; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Url != null ? Serializers.Url(this.Url) : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -59,20 +48,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Redirect Append(TwiML childElem) { return (Redirect) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Redirect SetOption(string key, object value) { return (Redirect) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Refer.cs b/src/Twilio/TwiML/Voice/Refer.cs index 5a708d763..d9f3e6399 100644 --- a/src/Twilio/TwiML/Voice/Refer.cs +++ b/src/Twilio/TwiML/Voice/Refer.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -13,34 +13,25 @@ namespace Twilio.TwiML.Voice { - /// - /// Refer TwiML Verb - /// + /// Refer TwiML Verb public class Refer : TwiML { - /// - /// Action URL - /// + /// Action URL public Uri Action { get; set; } - /// - /// Action URL method - /// + + /// Action URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Create a new Refer - /// - /// Action URL - /// Action URL method + /// Create a new Refer + /// Action URL + /// Action URL method public Refer(Uri action = null, Twilio.Http.HttpMethod method = null) : base("Refer") { this.Action = action; this.Method = method; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -55,10 +46,8 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// SIP URL, the body of the TwiML Element. + /// Create a new <Sip/> element and append it as a child of this element. + /// SIP URL, the body of the TwiML Element. public Refer Sip(Uri sipUrl = null) { var newChild = new ReferSip(sipUrl); @@ -66,10 +55,8 @@ public Refer Sip(Uri sipUrl = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A ReferSip instance. + /// Append a <Sip/> element as a child of this element + /// A ReferSip instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Refer ReferSip(ReferSip referSip) { @@ -77,30 +64,24 @@ public Refer ReferSip(ReferSip referSip) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// SIP URL, the body of the TwiML Element. + /// Create a new <Sip/> element and append it as a child of this element. + /// SIP URL, the body of the TwiML Element. [System.Obsolete("This method is deprecated, use .Sip() instead.")] public Refer ReferSip(Uri sipUrl = null) { return Sip(sipUrl); } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Refer Append(TwiML childElem) { return (Refer) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Refer SetOption(string key, object value) { return (Refer) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/ReferSip.cs b/src/Twilio/TwiML/Voice/ReferSip.cs index 3fc6801d7..395075739 100644 --- a/src/Twilio/TwiML/Voice/ReferSip.cs +++ b/src/Twilio/TwiML/Voice/ReferSip.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.IO; @@ -12,47 +12,35 @@ namespace Twilio.TwiML.Voice { - /// - /// Sip TwiML Noun used in Refer - /// + /// Sip TwiML Noun used in Refer public class ReferSip : TwiML { - /// - /// SIP URL - /// + /// SIP URL public Uri SipUrl { get; set; } - /// - /// Create a new ReferSip - /// - /// SIP URL, the body of the TwiML Element. + /// Create a new ReferSip + /// SIP URL, the body of the TwiML Element. public ReferSip(Uri sipUrl = null) : base("Sip") { this.SipUrl = sipUrl; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.SipUrl != null ? Serializers.Url(this.SipUrl) : string.Empty; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new ReferSip Append(TwiML childElem) { return (ReferSip) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new ReferSip SetOption(string key, object value) { return (ReferSip) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Reject.cs b/src/Twilio/TwiML/Voice/Reject.cs index 52140d649..b19d048bf 100644 --- a/src/Twilio/TwiML/Voice/Reject.cs +++ b/src/Twilio/TwiML/Voice/Reject.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -12,9 +12,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Reject TwiML Verb - /// + /// Reject TwiML Verb public class Reject : TwiML { public sealed class ReasonEnum : StringEnum @@ -30,23 +28,17 @@ public static implicit operator ReasonEnum(string value) public static readonly ReasonEnum Busy = new ReasonEnum("busy"); } - /// - /// Rejection reason - /// + /// Rejection reason public Reject.ReasonEnum Reason { get; set; } - /// - /// Create a new Reject - /// - /// Rejection reason + /// Create a new Reject + /// Rejection reason public Reject(Reject.ReasonEnum reason = null) : base("Reject") { this.Reason = reason; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -57,11 +49,9 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// The name of the custom parameter - /// The value of the custom parameter + /// Create a new <Parameter/> element and append it as a child of this element. + /// The name of the custom parameter + /// The value of the custom parameter public Reject Parameter(string name = null, string value = null) { var newChild = new Parameter(name, value); @@ -69,10 +59,8 @@ public Reject Parameter(string name = null, string value = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Parameter instance. + /// Append a <Parameter/> element as a child of this element + /// A Parameter instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Reject Parameter(Parameter parameter) { @@ -80,20 +68,16 @@ public Reject Parameter(Parameter parameter) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Reject Append(TwiML childElem) { return (Reject) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Reject SetOption(string key, object value) { return (Reject) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Room.cs b/src/Twilio/TwiML/Voice/Room.cs index 41da43f7b..c9065668e 100644 --- a/src/Twilio/TwiML/Voice/Room.cs +++ b/src/Twilio/TwiML/Voice/Room.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -11,42 +11,31 @@ namespace Twilio.TwiML.Voice { - /// - /// Room TwiML Noun - /// + /// Room TwiML Noun public class Room : TwiML { - /// - /// Room name - /// + /// Room name public string Name { get; set; } - /// - /// Participant identity when connecting to the Room - /// + + /// Participant identity when connecting to the Room public string ParticipantIdentity { get; set; } - /// - /// Create a new Room - /// - /// Room name, the body of the TwiML Element. - /// Participant identity when connecting to the Room + /// Create a new Room + /// Room name, the body of the TwiML Element. + /// Participant identity when connecting to the Room public Room(string name = null, string participantIdentity = null) : base("Room") { this.Name = name; this.ParticipantIdentity = participantIdentity; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Name != null ? this.Name : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -57,20 +46,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Room Append(TwiML childElem) { return (Room) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Room SetOption(string key, object value) { return (Room) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Say.cs b/src/Twilio/TwiML/Voice/Say.cs index e10f28547..6d2b68be2 100644 --- a/src/Twilio/TwiML/Voice/Say.cs +++ b/src/Twilio/TwiML/Voice/Say.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -12,9 +12,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Say TwiML Verb - /// + /// Say TwiML Verb public class Say : TwiML { public sealed class VoiceEnum : StringEnum @@ -190,30 +188,23 @@ public static implicit operator LanguageEnum(string value) public static readonly LanguageEnum ZhTw = new LanguageEnum("zh-TW"); } - /// - /// Message to say - /// + /// Message to say public string Message { get; set; } - /// - /// Voice to use - /// + + /// Voice to use public Say.VoiceEnum Voice { get; set; } - /// - /// Times to loop message - /// + + /// Times to loop message public int? Loop { get; set; } - /// - /// Message language - /// + + /// Message language public Say.LanguageEnum Language { get; set; } - /// - /// Create a new Say - /// - /// Message to say, the body of the TwiML Element. - /// Voice to use - /// Times to loop message - /// Message language + /// Create a new Say + /// Message to say, the body of the TwiML Element. + /// Voice to use + /// Times to loop message + /// Message language public Say(string message = null, Say.VoiceEnum voice = null, int? loop = null, @@ -225,17 +216,13 @@ public Say(string message = null, this.Language = language; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Message != null ? this.Message : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -254,12 +241,11 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// public Say Break(SsmlBreak.StrengthEnum strength = null, string time = null) { var newChild = new SsmlBreak(strength, time); @@ -267,10 +253,8 @@ public Say Break(SsmlBreak.StrengthEnum strength = null, string time = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlBreak instance. + /// Append a <Break/> element as a child of this element + /// A SsmlBreak instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Say SsmlBreak(SsmlBreak ssmlBreak) { @@ -278,23 +262,20 @@ public Say SsmlBreak(SsmlBreak ssmlBreak) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// [System.Obsolete("This method is deprecated, use .Break() instead.")] public Say SsmlBreak(SsmlBreak.StrengthEnum strength = null, string time = null) { return Break(strength, time); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis public Say Emphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { var newChild = new SsmlEmphasis(words, level); @@ -302,10 +283,8 @@ public Say Emphasis(string words = null, SsmlEmphasis.LevelEnum level = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlEmphasis instance. + /// Append a <Emphasis/> element as a child of this element + /// A SsmlEmphasis instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Say SsmlEmphasis(SsmlEmphasis ssmlEmphasis) { @@ -313,22 +292,18 @@ public Say SsmlEmphasis(SsmlEmphasis ssmlEmphasis) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis [System.Obsolete("This method is deprecated, use .Emphasis() instead.")] public Say SsmlEmphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { return Emphasis(words, level); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the language + /// Create a new <Lang/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the language public Say Lang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) { var newChild = new SsmlLang(words, xmlLang); @@ -336,10 +311,8 @@ public Say Lang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlLang instance. + /// Append a <Lang/> element as a child of this element + /// A SsmlLang instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Say SsmlLang(SsmlLang ssmlLang) { @@ -347,21 +320,17 @@ public Say SsmlLang(SsmlLang ssmlLang) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the language + /// Create a new <Lang/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the language [System.Obsolete("This method is deprecated, use .Lang() instead.")] public Say SsmlLang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) { return Lang(words, xmlLang); } - /// - /// Create a new

element and append it as a child of this element. - ///

- /// Words to speak, the body of the TwiML Element. + /// Create a new <P/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. public Say P(string words = null) { var newChild = new SsmlP(words); @@ -369,10 +338,8 @@ public Say P(string words = null) return this; } - /// - /// Append a

element as a child of this element - ///

- /// A SsmlP instance. + /// Append a <P/> element as a child of this element + /// A SsmlP instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Say SsmlP(SsmlP ssmlP) { @@ -380,22 +347,18 @@ public Say SsmlP(SsmlP ssmlP) return this; } - /// - /// Create a new

element and append it as a child of this element. - ///

- /// Words to speak, the body of the TwiML Element. + /// Create a new <P/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. [System.Obsolete("This method is deprecated, use .P() instead.")] public Say SsmlP(string words = null) { return P(words); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation public Say Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { var newChild = new SsmlPhoneme(words, alphabet, ph); @@ -403,10 +366,8 @@ public Say Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlPhoneme instance. + /// Append a <Phoneme/> element as a child of this element + /// A SsmlPhoneme instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Say SsmlPhoneme(SsmlPhoneme ssmlPhoneme) { @@ -414,27 +375,23 @@ public Say SsmlPhoneme(SsmlPhoneme ssmlPhoneme) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation [System.Obsolete("This method is deprecated, use .Phoneme() instead.")] public Say SsmlPhoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { return Phoneme(words, alphabet, ph); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% public Say Prosody(string words = null, string volume = null, string rate = null, string pitch = null) { var newChild = new SsmlProsody(words, volume, rate, pitch); @@ -442,10 +399,8 @@ public Say Prosody(string words = null, string volume = null, string rate = null return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlProsody instance. + /// Append a <Prosody/> element as a child of this element + /// A SsmlProsody instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Say SsmlProsody(SsmlProsody ssmlProsody) { @@ -453,25 +408,21 @@ public Say SsmlProsody(SsmlProsody ssmlProsody) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% [System.Obsolete("This method is deprecated, use .Prosody() instead.")] public Say SsmlProsody(string words = null, string volume = null, string rate = null, string pitch = null) { return Prosody(words, volume, rate, pitch); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. + /// Create a new <S/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. public Say S(string words = null) { var newChild = new SsmlS(words); @@ -479,10 +430,8 @@ public Say S(string words = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlS instance. + /// Append a <S/> element as a child of this element + /// A SsmlS instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Say SsmlS(SsmlS ssmlS) { @@ -490,22 +439,18 @@ public Say SsmlS(SsmlS ssmlS) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. + /// Create a new <S/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. [System.Obsolete("This method is deprecated, use .S() instead.")] public Say SsmlS(string words = null) { return S(words); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date public Say SayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, SsmlSayAs.FormatEnum format = null) @@ -515,10 +460,8 @@ public Say SayAs(string words = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSayAs instance. + /// Append a <Say-As/> element as a child of this element + /// A SsmlSayAs instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Say SsmlSayAs(SsmlSayAs ssmlSayAs) { @@ -526,12 +469,10 @@ public Say SsmlSayAs(SsmlSayAs ssmlSayAs) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date [System.Obsolete("This method is deprecated, use .SayAs() instead.")] public Say SsmlSayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, @@ -540,12 +481,11 @@ public Say SsmlSayAs(string words = null, return SayAs(words, interpretAs, format); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// public Say Sub(string words = null, string alias = null) { var newChild = new SsmlSub(words, alias); @@ -553,10 +493,8 @@ public Say Sub(string words = null, string alias = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSub instance. + /// Append a <Sub/> element as a child of this element + /// A SsmlSub instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Say SsmlSub(SsmlSub ssmlSub) { @@ -564,24 +502,22 @@ public Say SsmlSub(SsmlSub ssmlSub) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// [System.Obsolete("This method is deprecated, use .Sub() instead.")] public Say SsmlSub(string words = null, string alias = null) { return Sub(words, alias); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate - /// meaning + /// Create a new <W/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning + /// public Say W(string words = null, string role = null) { var newChild = new SsmlW(words, role); @@ -589,10 +525,8 @@ public Say W(string words = null, string role = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlW instance. + /// Append a <W/> element as a child of this element + /// A SsmlW instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Say SsmlW(SsmlW ssmlW) { @@ -600,32 +534,27 @@ public Say SsmlW(SsmlW ssmlW) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate - /// meaning + /// Create a new <W/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning + /// [System.Obsolete("This method is deprecated, use .W() instead.")] public Say SsmlW(string words = null, string role = null) { return W(words, role); } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Say Append(TwiML childElem) { return (Say) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Say SetOption(string key, object value) { return (Say) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Sim.cs b/src/Twilio/TwiML/Voice/Sim.cs index bae8ed0ca..54f0eb3c4 100644 --- a/src/Twilio/TwiML/Voice/Sim.cs +++ b/src/Twilio/TwiML/Voice/Sim.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.IO; using System.Text; @@ -10,47 +10,35 @@ namespace Twilio.TwiML.Voice { - /// - /// Sim TwiML Noun - /// + /// Sim TwiML Noun public class Sim : TwiML { - /// - /// SIM SID - /// + /// SIM SID public string SimSid { get; set; } - /// - /// Create a new Sim - /// - /// SIM SID, the body of the TwiML Element. + /// Create a new Sim + /// SIM SID, the body of the TwiML Element. public Sim(string simSid = null) : base("Sim") { this.SimSid = simSid; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.SimSid != null ? this.SimSid.ToString() : string.Empty; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Sim Append(TwiML childElem) { return (Sim) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Sim SetOption(string key, object value) { return (Sim) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Sip.cs b/src/Twilio/TwiML/Voice/Sip.cs index b75e839f3..ec34101a8 100644 --- a/src/Twilio/TwiML/Voice/Sip.cs +++ b/src/Twilio/TwiML/Voice/Sip.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -15,9 +15,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Sip TwiML Noun - /// + /// Sip TwiML Noun public class Sip : TwiML { public sealed class EventEnum : StringEnum @@ -35,92 +33,75 @@ public static implicit operator EventEnum(string value) public static readonly EventEnum Completed = new EventEnum("completed"); } - /// - /// SIP URL - /// + /// SIP URL public Uri SipUrl { get; set; } - /// - /// SIP Username - /// + + /// SIP Username public string Username { get; set; } - /// - /// SIP Password - /// + + /// SIP Password public string Password { get; set; } - /// - /// Action URL - /// + + /// Action URL public Uri Url { get; set; } - /// - /// Action URL method - /// + + /// Action URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Status callback events - /// - public List StatusCallbackEvent { get; set; } - /// - /// Status callback URL - /// + + /// Status callback events + public IEnumerable StatusCallbackEvent { get; set; } + + /// Status callback URL public Uri StatusCallback { get; set; } - /// - /// Status callback URL method - /// + + /// Status callback URL method public Twilio.Http.HttpMethod StatusCallbackMethod { get; set; } - /// - /// Enable machine detection or end of greeting detection - /// + + /// Enable machine detection or end of greeting detection public string MachineDetection { get; set; } - /// - /// HTTP Method to use with amd_status_callback - /// + + /// HTTP Method to use with amd_status_callback public Twilio.Http.HttpMethod AmdStatusCallbackMethod { get; set; } - /// - /// The URL we should call to send amd status information to your application - /// + + /// The URL we should call to send amd status information to your application public string AmdStatusCallback { get; set; } - /// - /// Number of seconds to wait for machine detection - /// + + /// Number of seconds to wait for machine detection public int? MachineDetectionTimeout { get; set; } - /// - /// Number of milliseconds for measuring stick for the length of the speech activity - /// + + /// Number of milliseconds for measuring stick for the length of the speech activity public int? MachineDetectionSpeechThreshold { get; set; } - /// - /// Number of milliseconds of silence after speech activity - /// + + /// Number of milliseconds of silence after speech activity public int? MachineDetectionSpeechEndThreshold { get; set; } - /// - /// Number of milliseconds of initial silence - /// + + /// Number of milliseconds of initial silence public int? MachineDetectionSilenceTimeout { get; set; } - /// - /// Create a new Sip - /// - /// SIP URL, the body of the TwiML Element. - /// SIP Username - /// SIP Password - /// Action URL - /// Action URL method - /// Status callback events - /// Status callback URL - /// Status callback URL method - /// Enable machine detection or end of greeting detection - /// HTTP Method to use with amd_status_callback - /// The URL we should call to send amd status information to your application - /// Number of seconds to wait for machine detection - /// Number of milliseconds for measuring stick for the length of the - /// speech activity - /// Number of milliseconds of silence after speech activity - /// Number of milliseconds of initial silence + /// Create a new Sip + /// SIP URL, the body of the TwiML Element. + /// SIP Username + /// SIP Password + /// Action URL + /// Action URL method + /// Status callback events + /// Status callback URL + /// Status callback URL method + /// Enable machine detection or end of greeting detection + /// HTTP Method to use with amd_status_callback + /// The URL we should call to send amd status information to your application + /// Number of seconds to wait for machine detection + /// + /// Number of milliseconds for measuring stick for the length of the speech activity + /// + /// Number of milliseconds of silence after speech activity + /// Number of milliseconds of initial silence public Sip(Uri sipUrl = null, string username = null, string password = null, Uri url = null, Twilio.Http.HttpMethod method = null, - List statusCallbackEvent = null, + IEnumerable statusCallbackEvent = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null, string machineDetection = null, @@ -148,17 +129,13 @@ public Sip(Uri sipUrl = null, this.MachineDetectionSilenceTimeout = machineDetectionSilenceTimeout; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.SipUrl != null ? Serializers.Url(this.SipUrl) : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -221,20 +198,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Sip Append(TwiML childElem) { return (Sip) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Sip SetOption(string key, object value) { return (Sip) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Siprec.cs b/src/Twilio/TwiML/Voice/Siprec.cs index 8d761df76..cda49a235 100644 --- a/src/Twilio/TwiML/Voice/Siprec.cs +++ b/src/Twilio/TwiML/Voice/Siprec.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -12,9 +12,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Siprec TwiML Noun - /// + /// Siprec TwiML Noun public class Siprec : TwiML { public sealed class TrackEnum : StringEnum @@ -31,25 +29,19 @@ public static implicit operator TrackEnum(string value) public static readonly TrackEnum BothTracks = new TrackEnum("both_tracks"); } - /// - /// Friendly name given to SIPREC - /// + /// Friendly name given to SIPREC public string Name { get; set; } - /// - /// Unique name for Connector - /// + + /// Unique name for Connector public string ConnectorName { get; set; } - /// - /// Track to be streamed to remote service - /// + + /// Track to be streamed to remote service public Siprec.TrackEnum Track { get; set; } - /// - /// Create a new Siprec - /// - /// Friendly name given to SIPREC - /// Unique name for Connector - /// Track to be streamed to remote service + /// Create a new Siprec + /// Friendly name given to SIPREC + /// Unique name for Connector + /// Track to be streamed to remote service public Siprec(string name = null, string connectorName = null, Siprec.TrackEnum track = null) : base("Siprec") { this.Name = name; @@ -57,9 +49,7 @@ public Siprec(string name = null, string connectorName = null, Siprec.TrackEnum this.Track = track; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -78,11 +68,9 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// The name of the custom parameter - /// The value of the custom parameter + /// Create a new <Parameter/> element and append it as a child of this element. + /// The name of the custom parameter + /// The value of the custom parameter public Siprec Parameter(string name = null, string value = null) { var newChild = new Parameter(name, value); @@ -90,10 +78,8 @@ public Siprec Parameter(string name = null, string value = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Parameter instance. + /// Append a <Parameter/> element as a child of this element + /// A Parameter instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Siprec Parameter(Parameter parameter) { @@ -101,20 +87,16 @@ public Siprec Parameter(Parameter parameter) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Siprec Append(TwiML childElem) { return (Siprec) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Siprec SetOption(string key, object value) { return (Siprec) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Sms.cs b/src/Twilio/TwiML/Voice/Sms.cs index f72235ae0..ad7313854 100644 --- a/src/Twilio/TwiML/Voice/Sms.cs +++ b/src/Twilio/TwiML/Voice/Sms.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -13,45 +13,34 @@ namespace Twilio.TwiML.Voice { - /// - /// Sms TwiML Noun - /// + /// Sms TwiML Noun public class Sms : TwiML { - /// - /// Message body - /// + /// Message body public string Message { get; set; } - /// - /// Number to send message to - /// + + /// Number to send message to public Types.PhoneNumber To { get; set; } - /// - /// Number to send message from - /// + + /// Number to send message from public Types.PhoneNumber From { get; set; } - /// - /// Action URL - /// + + /// Action URL public Uri Action { get; set; } - /// - /// Action URL method - /// + + /// Action URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Status callback URL - /// + + /// Status callback URL public Uri StatusCallback { get; set; } - /// - /// Create a new Sms - /// - /// Message body, the body of the TwiML Element. - /// Number to send message to - /// Number to send message from - /// Action URL - /// Action URL method - /// Status callback URL + /// Create a new Sms + /// Message body, the body of the TwiML Element. + /// Number to send message to + /// Number to send message from + /// Action URL + /// Action URL method + /// Status callback URL public Sms(string message = null, Types.PhoneNumber to = null, Types.PhoneNumber from = null, @@ -67,17 +56,13 @@ public Sms(string message = null, this.StatusCallback = statusCallback; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Message != null ? this.Message : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -104,20 +89,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Sms Append(TwiML childElem) { return (Sms) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Sms SetOption(string key, object value) { return (Sms) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/SsmlBreak.cs b/src/Twilio/TwiML/Voice/SsmlBreak.cs index 756e5ee13..93c18f50b 100644 --- a/src/Twilio/TwiML/Voice/SsmlBreak.cs +++ b/src/Twilio/TwiML/Voice/SsmlBreak.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -12,9 +12,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Adding a Pause in Say - /// + /// Adding a Pause in Say public class SsmlBreak : TwiML { public sealed class StrengthEnum : StringEnum @@ -34,30 +32,24 @@ public static implicit operator StrengthEnum(string value) public static readonly StrengthEnum XStrong = new StrengthEnum("x-strong"); } - /// - /// Set a pause based on strength - /// + /// Set a pause based on strength public SsmlBreak.StrengthEnum Strength { get; set; } - /// - /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms - /// + + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms public string Time { get; set; } - /// - /// Create a new SsmlBreak - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new SsmlBreak + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// public SsmlBreak(SsmlBreak.StrengthEnum strength = null, string time = null) : base("break") { this.Strength = strength; this.Time = time; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -72,20 +64,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new SsmlBreak Append(TwiML childElem) { return (SsmlBreak) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new SsmlBreak SetOption(string key, object value) { return (SsmlBreak) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/SsmlEmphasis.cs b/src/Twilio/TwiML/Voice/SsmlEmphasis.cs index 9a86d161d..3b820e883 100644 --- a/src/Twilio/TwiML/Voice/SsmlEmphasis.cs +++ b/src/Twilio/TwiML/Voice/SsmlEmphasis.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -12,9 +12,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Emphasizing Words in Say - /// + /// Emphasizing Words in Say public class SsmlEmphasis : TwiML { public sealed class LevelEnum : StringEnum @@ -31,37 +29,28 @@ public static implicit operator LevelEnum(string value) public static readonly LevelEnum Reduced = new LevelEnum("reduced"); } - /// - /// Words to emphasize - /// + /// Words to emphasize public string Words { get; set; } - /// - /// Specify the degree of emphasis - /// + + /// Specify the degree of emphasis public SsmlEmphasis.LevelEnum Level { get; set; } - /// - /// Create a new SsmlEmphasis - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new SsmlEmphasis + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis public SsmlEmphasis(string words = null, SsmlEmphasis.LevelEnum level = null) : base("emphasis") { this.Words = words; this.Level = level; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Words != null ? this.Words : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -72,12 +61,11 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// public SsmlEmphasis Break(SsmlBreak.StrengthEnum strength = null, string time = null) { var newChild = new SsmlBreak(strength, time); @@ -85,10 +73,8 @@ public SsmlEmphasis Break(SsmlBreak.StrengthEnum strength = null, string time = return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlBreak instance. + /// Append a <Break/> element as a child of this element + /// A SsmlBreak instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlEmphasis SsmlBreak(SsmlBreak ssmlBreak) { @@ -96,23 +82,20 @@ public SsmlEmphasis SsmlBreak(SsmlBreak ssmlBreak) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// [System.Obsolete("This method is deprecated, use .Break() instead.")] public SsmlEmphasis SsmlBreak(SsmlBreak.StrengthEnum strength = null, string time = null) { return Break(strength, time); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis public SsmlEmphasis Emphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { var newChild = new SsmlEmphasis(words, level); @@ -120,10 +103,8 @@ public SsmlEmphasis Emphasis(string words = null, SsmlEmphasis.LevelEnum level = return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlEmphasis instance. + /// Append a <Emphasis/> element as a child of this element + /// A SsmlEmphasis instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlEmphasis AppendSsmlEmphasis(SsmlEmphasis ssmlEmphasis) { @@ -131,22 +112,18 @@ public SsmlEmphasis AppendSsmlEmphasis(SsmlEmphasis ssmlEmphasis) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis [System.Obsolete("This method is deprecated, use .Emphasis() instead.")] public SsmlEmphasis AppendSsmlEmphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { return Emphasis(words, level); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the language + /// Create a new <Lang/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the language public SsmlEmphasis Lang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) { var newChild = new SsmlLang(words, xmlLang); @@ -154,10 +131,8 @@ public SsmlEmphasis Lang(string words = null, SsmlLang.XmlLangEnum xmlLang = nul return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlLang instance. + /// Append a <Lang/> element as a child of this element + /// A SsmlLang instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlEmphasis SsmlLang(SsmlLang ssmlLang) { @@ -165,23 +140,19 @@ public SsmlEmphasis SsmlLang(SsmlLang ssmlLang) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the language + /// Create a new <Lang/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the language [System.Obsolete("This method is deprecated, use .Lang() instead.")] public SsmlEmphasis SsmlLang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) { return Lang(words, xmlLang); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation public SsmlEmphasis Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { var newChild = new SsmlPhoneme(words, alphabet, ph); @@ -189,10 +160,8 @@ public SsmlEmphasis Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphab return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlPhoneme instance. + /// Append a <Phoneme/> element as a child of this element + /// A SsmlPhoneme instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlEmphasis SsmlPhoneme(SsmlPhoneme ssmlPhoneme) { @@ -200,27 +169,23 @@ public SsmlEmphasis SsmlPhoneme(SsmlPhoneme ssmlPhoneme) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation [System.Obsolete("This method is deprecated, use .Phoneme() instead.")] public SsmlEmphasis SsmlPhoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { return Phoneme(words, alphabet, ph); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% public SsmlEmphasis Prosody(string words = null, string volume = null, string rate = null, string pitch = null) { var newChild = new SsmlProsody(words, volume, rate, pitch); @@ -228,10 +193,8 @@ public SsmlEmphasis Prosody(string words = null, string volume = null, string ra return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlProsody instance. + /// Append a <Prosody/> element as a child of this element + /// A SsmlProsody instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlEmphasis SsmlProsody(SsmlProsody ssmlProsody) { @@ -239,27 +202,23 @@ public SsmlEmphasis SsmlProsody(SsmlProsody ssmlProsody) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% [System.Obsolete("This method is deprecated, use .Prosody() instead.")] public SsmlEmphasis SsmlProsody(string words = null, string volume = null, string rate = null, string pitch = null) { return Prosody(words, volume, rate, pitch); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date public SsmlEmphasis SayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, SsmlSayAs.FormatEnum format = null) @@ -269,10 +228,8 @@ public SsmlEmphasis SayAs(string words = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSayAs instance. + /// Append a <Say-As/> element as a child of this element + /// A SsmlSayAs instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlEmphasis SsmlSayAs(SsmlSayAs ssmlSayAs) { @@ -280,12 +237,10 @@ public SsmlEmphasis SsmlSayAs(SsmlSayAs ssmlSayAs) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date [System.Obsolete("This method is deprecated, use .SayAs() instead.")] public SsmlEmphasis SsmlSayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, @@ -294,12 +249,11 @@ public SsmlEmphasis SsmlSayAs(string words = null, return SayAs(words, interpretAs, format); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// public SsmlEmphasis Sub(string words = null, string alias = null) { var newChild = new SsmlSub(words, alias); @@ -307,10 +261,8 @@ public SsmlEmphasis Sub(string words = null, string alias = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSub instance. + /// Append a <Sub/> element as a child of this element + /// A SsmlSub instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlEmphasis SsmlSub(SsmlSub ssmlSub) { @@ -318,24 +270,22 @@ public SsmlEmphasis SsmlSub(SsmlSub ssmlSub) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// [System.Obsolete("This method is deprecated, use .Sub() instead.")] public SsmlEmphasis SsmlSub(string words = null, string alias = null) { return Sub(words, alias); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate - /// meaning + /// Create a new <W/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning + /// public SsmlEmphasis W(string words = null, string role = null) { var newChild = new SsmlW(words, role); @@ -343,10 +293,8 @@ public SsmlEmphasis W(string words = null, string role = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlW instance. + /// Append a <W/> element as a child of this element + /// A SsmlW instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlEmphasis SsmlW(SsmlW ssmlW) { @@ -354,32 +302,27 @@ public SsmlEmphasis SsmlW(SsmlW ssmlW) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate - /// meaning + /// Create a new <W/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning + /// [System.Obsolete("This method is deprecated, use .W() instead.")] public SsmlEmphasis SsmlW(string words = null, string role = null) { return W(words, role); } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new SsmlEmphasis Append(TwiML childElem) { return (SsmlEmphasis) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new SsmlEmphasis SetOption(string key, object value) { return (SsmlEmphasis) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/SsmlLang.cs b/src/Twilio/TwiML/Voice/SsmlLang.cs index aa7068030..358d8832c 100644 --- a/src/Twilio/TwiML/Voice/SsmlLang.cs +++ b/src/Twilio/TwiML/Voice/SsmlLang.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -12,9 +12,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Specifying Another Language for Specific Words in Say - /// + /// Specifying Another Language for Specific Words in Say public class SsmlLang : TwiML { public sealed class XmlLangEnum : StringEnum @@ -64,37 +62,28 @@ public static implicit operator XmlLangEnum(string value) public static readonly XmlLangEnum YueCn = new XmlLangEnum("yue-CN"); } - /// - /// Words to speak - /// + /// Words to speak public string Words { get; set; } - /// - /// Specify the language - /// + + /// Specify the language public SsmlLang.XmlLangEnum XmlLang { get; set; } - /// - /// Create a new SsmlLang - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the language + /// Create a new SsmlLang + /// Words to speak, the body of the TwiML Element. + /// Specify the language public SsmlLang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) : base("lang") { this.Words = words; this.XmlLang = xmlLang; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Words != null ? this.Words : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -105,12 +94,11 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// public SsmlLang Break(SsmlBreak.StrengthEnum strength = null, string time = null) { var newChild = new SsmlBreak(strength, time); @@ -118,10 +106,8 @@ public SsmlLang Break(SsmlBreak.StrengthEnum strength = null, string time = null return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlBreak instance. + /// Append a <Break/> element as a child of this element + /// A SsmlBreak instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlLang SsmlBreak(SsmlBreak ssmlBreak) { @@ -129,23 +115,20 @@ public SsmlLang SsmlBreak(SsmlBreak ssmlBreak) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// [System.Obsolete("This method is deprecated, use .Break() instead.")] public SsmlLang SsmlBreak(SsmlBreak.StrengthEnum strength = null, string time = null) { return Break(strength, time); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis public SsmlLang Emphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { var newChild = new SsmlEmphasis(words, level); @@ -153,10 +136,8 @@ public SsmlLang Emphasis(string words = null, SsmlEmphasis.LevelEnum level = nul return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlEmphasis instance. + /// Append a <Emphasis/> element as a child of this element + /// A SsmlEmphasis instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlLang SsmlEmphasis(SsmlEmphasis ssmlEmphasis) { @@ -164,22 +145,18 @@ public SsmlLang SsmlEmphasis(SsmlEmphasis ssmlEmphasis) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis [System.Obsolete("This method is deprecated, use .Emphasis() instead.")] public SsmlLang SsmlEmphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { return Emphasis(words, level); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the language + /// Create a new <Lang/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the language public SsmlLang Lang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) { var newChild = new SsmlLang(words, xmlLang); @@ -187,10 +164,8 @@ public SsmlLang Lang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlLang instance. + /// Append a <Lang/> element as a child of this element + /// A SsmlLang instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlLang AppendSsmlLang(SsmlLang ssmlLang) { @@ -198,21 +173,17 @@ public SsmlLang AppendSsmlLang(SsmlLang ssmlLang) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the language + /// Create a new <Lang/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the language [System.Obsolete("This method is deprecated, use .Lang() instead.")] public SsmlLang AppendSsmlLang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) { return Lang(words, xmlLang); } - /// - /// Create a new

element and append it as a child of this element. - ///

- /// Words to speak, the body of the TwiML Element. + /// Create a new <P/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. public SsmlLang P(string words = null) { var newChild = new SsmlP(words); @@ -220,10 +191,8 @@ public SsmlLang P(string words = null) return this; } - /// - /// Append a

element as a child of this element - ///

- /// A SsmlP instance. + /// Append a <P/> element as a child of this element + /// A SsmlP instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlLang SsmlP(SsmlP ssmlP) { @@ -231,22 +200,18 @@ public SsmlLang SsmlP(SsmlP ssmlP) return this; } - /// - /// Create a new

element and append it as a child of this element. - ///

- /// Words to speak, the body of the TwiML Element. + /// Create a new <P/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. [System.Obsolete("This method is deprecated, use .P() instead.")] public SsmlLang SsmlP(string words = null) { return P(words); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation public SsmlLang Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { var newChild = new SsmlPhoneme(words, alphabet, ph); @@ -254,10 +219,8 @@ public SsmlLang Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlPhoneme instance. + /// Append a <Phoneme/> element as a child of this element + /// A SsmlPhoneme instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlLang SsmlPhoneme(SsmlPhoneme ssmlPhoneme) { @@ -265,27 +228,23 @@ public SsmlLang SsmlPhoneme(SsmlPhoneme ssmlPhoneme) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation [System.Obsolete("This method is deprecated, use .Phoneme() instead.")] public SsmlLang SsmlPhoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { return Phoneme(words, alphabet, ph); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% public SsmlLang Prosody(string words = null, string volume = null, string rate = null, string pitch = null) { var newChild = new SsmlProsody(words, volume, rate, pitch); @@ -293,10 +252,8 @@ public SsmlLang Prosody(string words = null, string volume = null, string rate = return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlProsody instance. + /// Append a <Prosody/> element as a child of this element + /// A SsmlProsody instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlLang SsmlProsody(SsmlProsody ssmlProsody) { @@ -304,25 +261,21 @@ public SsmlLang SsmlProsody(SsmlProsody ssmlProsody) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% [System.Obsolete("This method is deprecated, use .Prosody() instead.")] public SsmlLang SsmlProsody(string words = null, string volume = null, string rate = null, string pitch = null) { return Prosody(words, volume, rate, pitch); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. + /// Create a new <S/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. public SsmlLang S(string words = null) { var newChild = new SsmlS(words); @@ -330,10 +283,8 @@ public SsmlLang S(string words = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlS instance. + /// Append a <S/> element as a child of this element + /// A SsmlS instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlLang SsmlS(SsmlS ssmlS) { @@ -341,22 +292,18 @@ public SsmlLang SsmlS(SsmlS ssmlS) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. + /// Create a new <S/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. [System.Obsolete("This method is deprecated, use .S() instead.")] public SsmlLang SsmlS(string words = null) { return S(words); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date public SsmlLang SayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, SsmlSayAs.FormatEnum format = null) @@ -366,10 +313,8 @@ public SsmlLang SayAs(string words = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSayAs instance. + /// Append a <Say-As/> element as a child of this element + /// A SsmlSayAs instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlLang SsmlSayAs(SsmlSayAs ssmlSayAs) { @@ -377,12 +322,10 @@ public SsmlLang SsmlSayAs(SsmlSayAs ssmlSayAs) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date [System.Obsolete("This method is deprecated, use .SayAs() instead.")] public SsmlLang SsmlSayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, @@ -391,12 +334,11 @@ public SsmlLang SsmlSayAs(string words = null, return SayAs(words, interpretAs, format); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// public SsmlLang Sub(string words = null, string alias = null) { var newChild = new SsmlSub(words, alias); @@ -404,10 +346,8 @@ public SsmlLang Sub(string words = null, string alias = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSub instance. + /// Append a <Sub/> element as a child of this element + /// A SsmlSub instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlLang SsmlSub(SsmlSub ssmlSub) { @@ -415,24 +355,22 @@ public SsmlLang SsmlSub(SsmlSub ssmlSub) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// [System.Obsolete("This method is deprecated, use .Sub() instead.")] public SsmlLang SsmlSub(string words = null, string alias = null) { return Sub(words, alias); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate - /// meaning + /// Create a new <W/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning + /// public SsmlLang W(string words = null, string role = null) { var newChild = new SsmlW(words, role); @@ -440,10 +378,8 @@ public SsmlLang W(string words = null, string role = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlW instance. + /// Append a <W/> element as a child of this element + /// A SsmlW instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlLang SsmlW(SsmlW ssmlW) { @@ -451,32 +387,27 @@ public SsmlLang SsmlW(SsmlW ssmlW) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate - /// meaning + /// Create a new <W/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning + /// [System.Obsolete("This method is deprecated, use .W() instead.")] public SsmlLang SsmlW(string words = null, string role = null) { return W(words, role); } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new SsmlLang Append(TwiML childElem) { return (SsmlLang) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new SsmlLang SetOption(string key, object value) { return (SsmlLang) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/SsmlP.cs b/src/Twilio/TwiML/Voice/SsmlP.cs index 7831912e5..22b5f341d 100644 --- a/src/Twilio/TwiML/Voice/SsmlP.cs +++ b/src/Twilio/TwiML/Voice/SsmlP.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.IO; using System.Text; @@ -10,39 +10,30 @@ namespace Twilio.TwiML.Voice { - /// - /// Adding a Pause Between Paragraphs in Say - /// + /// Adding a Pause Between Paragraphs in Say public class SsmlP : TwiML { - /// - /// Words to speak - /// + /// Words to speak public string Words { get; set; } - /// - /// Create a new SsmlP - /// - /// Words to speak, the body of the TwiML Element. + /// Create a new SsmlP + /// Words to speak, the body of the TwiML Element. public SsmlP(string words = null) : base("p") { this.Words = words; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Words != null ? this.Words : string.Empty; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// public SsmlP Break(SsmlBreak.StrengthEnum strength = null, string time = null) { var newChild = new SsmlBreak(strength, time); @@ -50,10 +41,8 @@ public SsmlP Break(SsmlBreak.StrengthEnum strength = null, string time = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlBreak instance. + /// Append a <Break/> element as a child of this element + /// A SsmlBreak instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlP SsmlBreak(SsmlBreak ssmlBreak) { @@ -61,23 +50,20 @@ public SsmlP SsmlBreak(SsmlBreak ssmlBreak) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// [System.Obsolete("This method is deprecated, use .Break() instead.")] public SsmlP SsmlBreak(SsmlBreak.StrengthEnum strength = null, string time = null) { return Break(strength, time); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis public SsmlP Emphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { var newChild = new SsmlEmphasis(words, level); @@ -85,10 +71,8 @@ public SsmlP Emphasis(string words = null, SsmlEmphasis.LevelEnum level = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlEmphasis instance. + /// Append a <Emphasis/> element as a child of this element + /// A SsmlEmphasis instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlP SsmlEmphasis(SsmlEmphasis ssmlEmphasis) { @@ -96,22 +80,18 @@ public SsmlP SsmlEmphasis(SsmlEmphasis ssmlEmphasis) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis [System.Obsolete("This method is deprecated, use .Emphasis() instead.")] public SsmlP SsmlEmphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { return Emphasis(words, level); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the language + /// Create a new <Lang/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the language public SsmlP Lang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) { var newChild = new SsmlLang(words, xmlLang); @@ -119,10 +99,8 @@ public SsmlP Lang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlLang instance. + /// Append a <Lang/> element as a child of this element + /// A SsmlLang instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlP SsmlLang(SsmlLang ssmlLang) { @@ -130,23 +108,19 @@ public SsmlP SsmlLang(SsmlLang ssmlLang) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the language + /// Create a new <Lang/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the language [System.Obsolete("This method is deprecated, use .Lang() instead.")] public SsmlP SsmlLang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) { return Lang(words, xmlLang); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation public SsmlP Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { var newChild = new SsmlPhoneme(words, alphabet, ph); @@ -154,10 +128,8 @@ public SsmlP Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = nu return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlPhoneme instance. + /// Append a <Phoneme/> element as a child of this element + /// A SsmlPhoneme instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlP SsmlPhoneme(SsmlPhoneme ssmlPhoneme) { @@ -165,27 +137,23 @@ public SsmlP SsmlPhoneme(SsmlPhoneme ssmlPhoneme) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation [System.Obsolete("This method is deprecated, use .Phoneme() instead.")] public SsmlP SsmlPhoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { return Phoneme(words, alphabet, ph); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% public SsmlP Prosody(string words = null, string volume = null, string rate = null, string pitch = null) { var newChild = new SsmlProsody(words, volume, rate, pitch); @@ -193,10 +161,8 @@ public SsmlP Prosody(string words = null, string volume = null, string rate = nu return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlProsody instance. + /// Append a <Prosody/> element as a child of this element + /// A SsmlProsody instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlP SsmlProsody(SsmlProsody ssmlProsody) { @@ -204,25 +170,21 @@ public SsmlP SsmlProsody(SsmlProsody ssmlProsody) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% [System.Obsolete("This method is deprecated, use .Prosody() instead.")] public SsmlP SsmlProsody(string words = null, string volume = null, string rate = null, string pitch = null) { return Prosody(words, volume, rate, pitch); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. + /// Create a new <S/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. public SsmlP S(string words = null) { var newChild = new SsmlS(words); @@ -230,10 +192,8 @@ public SsmlP S(string words = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlS instance. + /// Append a <S/> element as a child of this element + /// A SsmlS instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlP SsmlS(SsmlS ssmlS) { @@ -241,22 +201,18 @@ public SsmlP SsmlS(SsmlS ssmlS) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. + /// Create a new <S/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. [System.Obsolete("This method is deprecated, use .S() instead.")] public SsmlP SsmlS(string words = null) { return S(words); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date public SsmlP SayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, SsmlSayAs.FormatEnum format = null) @@ -266,10 +222,8 @@ public SsmlP SayAs(string words = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSayAs instance. + /// Append a <Say-As/> element as a child of this element + /// A SsmlSayAs instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlP SsmlSayAs(SsmlSayAs ssmlSayAs) { @@ -277,12 +231,10 @@ public SsmlP SsmlSayAs(SsmlSayAs ssmlSayAs) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date [System.Obsolete("This method is deprecated, use .SayAs() instead.")] public SsmlP SsmlSayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, @@ -291,12 +243,11 @@ public SsmlP SsmlSayAs(string words = null, return SayAs(words, interpretAs, format); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// public SsmlP Sub(string words = null, string alias = null) { var newChild = new SsmlSub(words, alias); @@ -304,10 +255,8 @@ public SsmlP Sub(string words = null, string alias = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSub instance. + /// Append a <Sub/> element as a child of this element + /// A SsmlSub instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlP SsmlSub(SsmlSub ssmlSub) { @@ -315,24 +264,22 @@ public SsmlP SsmlSub(SsmlSub ssmlSub) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// [System.Obsolete("This method is deprecated, use .Sub() instead.")] public SsmlP SsmlSub(string words = null, string alias = null) { return Sub(words, alias); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate - /// meaning + /// Create a new <W/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning + /// public SsmlP W(string words = null, string role = null) { var newChild = new SsmlW(words, role); @@ -340,10 +287,8 @@ public SsmlP W(string words = null, string role = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlW instance. + /// Append a <W/> element as a child of this element + /// A SsmlW instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlP SsmlW(SsmlW ssmlW) { @@ -351,32 +296,27 @@ public SsmlP SsmlW(SsmlW ssmlW) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate - /// meaning + /// Create a new <W/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning + /// [System.Obsolete("This method is deprecated, use .W() instead.")] public SsmlP SsmlW(string words = null, string role = null) { return W(words, role); } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new SsmlP Append(TwiML childElem) { return (SsmlP) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new SsmlP SetOption(string key, object value) { return (SsmlP) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/SsmlPhoneme.cs b/src/Twilio/TwiML/Voice/SsmlPhoneme.cs index 29a692199..c9b6c2840 100644 --- a/src/Twilio/TwiML/Voice/SsmlPhoneme.cs +++ b/src/Twilio/TwiML/Voice/SsmlPhoneme.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -12,9 +12,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Using Phonetic Pronunciation in Say - /// + /// Using Phonetic Pronunciation in Say public class SsmlPhoneme : TwiML { public sealed class AlphabetEnum : StringEnum @@ -34,25 +32,19 @@ public static implicit operator AlphabetEnum(string value) public static readonly AlphabetEnum XAmazonYomigana = new AlphabetEnum("x-amazon-yomigana"); } - /// - /// Words to speak - /// + /// Words to speak public string Words { get; set; } - /// - /// Specify the phonetic alphabet - /// + + /// Specify the phonetic alphabet public SsmlPhoneme.AlphabetEnum Alphabet { get; set; } - /// - /// Specifiy the phonetic symbols for pronunciation - /// + + /// Specifiy the phonetic symbols for pronunciation public string Ph { get; set; } - /// - /// Create a new SsmlPhoneme - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new SsmlPhoneme + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation public SsmlPhoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) : base("phoneme") { this.Words = words; @@ -60,17 +52,13 @@ public SsmlPhoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null this.Ph = ph; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Words != null ? this.Words : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -85,20 +73,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new SsmlPhoneme Append(TwiML childElem) { return (SsmlPhoneme) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new SsmlPhoneme SetOption(string key, object value) { return (SsmlPhoneme) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/SsmlProsody.cs b/src/Twilio/TwiML/Voice/SsmlProsody.cs index e9bd17b96..606876afa 100644 --- a/src/Twilio/TwiML/Voice/SsmlProsody.cs +++ b/src/Twilio/TwiML/Voice/SsmlProsody.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -11,37 +11,28 @@ namespace Twilio.TwiML.Voice { - /// - /// Controling Volume, Speaking Rate, and Pitch in Say - /// + /// Controling Volume, Speaking Rate, and Pitch in Say public class SsmlProsody : TwiML { - /// - /// Words to speak - /// + /// Words to speak public string Words { get; set; } - /// - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB - /// + + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB public string Volume { get; set; } - /// - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// + + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% public string Rate { get; set; } - /// - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% public string Pitch { get; set; } - /// - /// Create a new SsmlProsody - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new SsmlProsody + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% public SsmlProsody(string words = null, string volume = null, string rate = null, @@ -53,17 +44,13 @@ public SsmlProsody(string words = null, this.Pitch = pitch; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Words != null ? this.Words : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -82,12 +69,11 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// public SsmlProsody Break(SsmlBreak.StrengthEnum strength = null, string time = null) { var newChild = new SsmlBreak(strength, time); @@ -95,10 +81,8 @@ public SsmlProsody Break(SsmlBreak.StrengthEnum strength = null, string time = n return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlBreak instance. + /// Append a <Break/> element as a child of this element + /// A SsmlBreak instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlProsody SsmlBreak(SsmlBreak ssmlBreak) { @@ -106,23 +90,20 @@ public SsmlProsody SsmlBreak(SsmlBreak ssmlBreak) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// [System.Obsolete("This method is deprecated, use .Break() instead.")] public SsmlProsody SsmlBreak(SsmlBreak.StrengthEnum strength = null, string time = null) { return Break(strength, time); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis public SsmlProsody Emphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { var newChild = new SsmlEmphasis(words, level); @@ -130,10 +111,8 @@ public SsmlProsody Emphasis(string words = null, SsmlEmphasis.LevelEnum level = return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlEmphasis instance. + /// Append a <Emphasis/> element as a child of this element + /// A SsmlEmphasis instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlProsody SsmlEmphasis(SsmlEmphasis ssmlEmphasis) { @@ -141,22 +120,18 @@ public SsmlProsody SsmlEmphasis(SsmlEmphasis ssmlEmphasis) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis [System.Obsolete("This method is deprecated, use .Emphasis() instead.")] public SsmlProsody SsmlEmphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { return Emphasis(words, level); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the language + /// Create a new <Lang/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the language public SsmlProsody Lang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) { var newChild = new SsmlLang(words, xmlLang); @@ -164,10 +139,8 @@ public SsmlProsody Lang(string words = null, SsmlLang.XmlLangEnum xmlLang = null return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlLang instance. + /// Append a <Lang/> element as a child of this element + /// A SsmlLang instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlProsody SsmlLang(SsmlLang ssmlLang) { @@ -175,21 +148,17 @@ public SsmlProsody SsmlLang(SsmlLang ssmlLang) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the language + /// Create a new <Lang/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the language [System.Obsolete("This method is deprecated, use .Lang() instead.")] public SsmlProsody SsmlLang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) { return Lang(words, xmlLang); } - /// - /// Create a new

element and append it as a child of this element. - ///

- /// Words to speak, the body of the TwiML Element. + /// Create a new <P/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. public SsmlProsody P(string words = null) { var newChild = new SsmlP(words); @@ -197,10 +166,8 @@ public SsmlProsody P(string words = null) return this; } - /// - /// Append a

element as a child of this element - ///

- /// A SsmlP instance. + /// Append a <P/> element as a child of this element + /// A SsmlP instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlProsody SsmlP(SsmlP ssmlP) { @@ -208,22 +175,18 @@ public SsmlProsody SsmlP(SsmlP ssmlP) return this; } - /// - /// Create a new

element and append it as a child of this element. - ///

- /// Words to speak, the body of the TwiML Element. + /// Create a new <P/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. [System.Obsolete("This method is deprecated, use .P() instead.")] public SsmlProsody SsmlP(string words = null) { return P(words); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation public SsmlProsody Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { var newChild = new SsmlPhoneme(words, alphabet, ph); @@ -231,10 +194,8 @@ public SsmlProsody Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabe return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlPhoneme instance. + /// Append a <Phoneme/> element as a child of this element + /// A SsmlPhoneme instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlProsody SsmlPhoneme(SsmlPhoneme ssmlPhoneme) { @@ -242,27 +203,23 @@ public SsmlProsody SsmlPhoneme(SsmlPhoneme ssmlPhoneme) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation [System.Obsolete("This method is deprecated, use .Phoneme() instead.")] public SsmlProsody SsmlPhoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { return Phoneme(words, alphabet, ph); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% public SsmlProsody Prosody(string words = null, string volume = null, string rate = null, string pitch = null) { var newChild = new SsmlProsody(words, volume, rate, pitch); @@ -270,10 +227,8 @@ public SsmlProsody Prosody(string words = null, string volume = null, string rat return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlProsody instance. + /// Append a <Prosody/> element as a child of this element + /// A SsmlProsody instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlProsody AppendSsmlProsody(SsmlProsody ssmlProsody) { @@ -281,15 +236,13 @@ public SsmlProsody AppendSsmlProsody(SsmlProsody ssmlProsody) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% [System.Obsolete("This method is deprecated, use .Prosody() instead.")] public SsmlProsody AppendSsmlProsody(string words = null, string volume = null, @@ -299,10 +252,8 @@ public SsmlProsody AppendSsmlProsody(string words = null, return Prosody(words, volume, rate, pitch); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. + /// Create a new <S/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. public SsmlProsody S(string words = null) { var newChild = new SsmlS(words); @@ -310,10 +261,8 @@ public SsmlProsody S(string words = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlS instance. + /// Append a <S/> element as a child of this element + /// A SsmlS instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlProsody SsmlS(SsmlS ssmlS) { @@ -321,22 +270,18 @@ public SsmlProsody SsmlS(SsmlS ssmlS) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. + /// Create a new <S/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. [System.Obsolete("This method is deprecated, use .S() instead.")] public SsmlProsody SsmlS(string words = null) { return S(words); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date public SsmlProsody SayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, SsmlSayAs.FormatEnum format = null) @@ -346,10 +291,8 @@ public SsmlProsody SayAs(string words = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSayAs instance. + /// Append a <Say-As/> element as a child of this element + /// A SsmlSayAs instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlProsody SsmlSayAs(SsmlSayAs ssmlSayAs) { @@ -357,12 +300,10 @@ public SsmlProsody SsmlSayAs(SsmlSayAs ssmlSayAs) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date [System.Obsolete("This method is deprecated, use .SayAs() instead.")] public SsmlProsody SsmlSayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, @@ -371,12 +312,11 @@ public SsmlProsody SsmlSayAs(string words = null, return SayAs(words, interpretAs, format); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// public SsmlProsody Sub(string words = null, string alias = null) { var newChild = new SsmlSub(words, alias); @@ -384,10 +324,8 @@ public SsmlProsody Sub(string words = null, string alias = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSub instance. + /// Append a <Sub/> element as a child of this element + /// A SsmlSub instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlProsody SsmlSub(SsmlSub ssmlSub) { @@ -395,24 +333,22 @@ public SsmlProsody SsmlSub(SsmlSub ssmlSub) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// [System.Obsolete("This method is deprecated, use .Sub() instead.")] public SsmlProsody SsmlSub(string words = null, string alias = null) { return Sub(words, alias); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate - /// meaning + /// Create a new <W/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning + /// public SsmlProsody W(string words = null, string role = null) { var newChild = new SsmlW(words, role); @@ -420,10 +356,8 @@ public SsmlProsody W(string words = null, string role = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlW instance. + /// Append a <W/> element as a child of this element + /// A SsmlW instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlProsody SsmlW(SsmlW ssmlW) { @@ -431,32 +365,27 @@ public SsmlProsody SsmlW(SsmlW ssmlW) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate - /// meaning + /// Create a new <W/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning + /// [System.Obsolete("This method is deprecated, use .W() instead.")] public SsmlProsody SsmlW(string words = null, string role = null) { return W(words, role); } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new SsmlProsody Append(TwiML childElem) { return (SsmlProsody) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new SsmlProsody SetOption(string key, object value) { return (SsmlProsody) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/SsmlS.cs b/src/Twilio/TwiML/Voice/SsmlS.cs index b6506c207..c31563d10 100644 --- a/src/Twilio/TwiML/Voice/SsmlS.cs +++ b/src/Twilio/TwiML/Voice/SsmlS.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.IO; using System.Text; @@ -10,39 +10,30 @@ namespace Twilio.TwiML.Voice { - /// - /// Adding A Pause Between Sentences in Say - /// + /// Adding A Pause Between Sentences in Say public class SsmlS : TwiML { - /// - /// Words to speak - /// + /// Words to speak public string Words { get; set; } - /// - /// Create a new SsmlS - /// - /// Words to speak, the body of the TwiML Element. + /// Create a new SsmlS + /// Words to speak, the body of the TwiML Element. public SsmlS(string words = null) : base("s") { this.Words = words; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Words != null ? this.Words : string.Empty; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// public SsmlS Break(SsmlBreak.StrengthEnum strength = null, string time = null) { var newChild = new SsmlBreak(strength, time); @@ -50,10 +41,8 @@ public SsmlS Break(SsmlBreak.StrengthEnum strength = null, string time = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlBreak instance. + /// Append a <Break/> element as a child of this element + /// A SsmlBreak instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlS SsmlBreak(SsmlBreak ssmlBreak) { @@ -61,23 +50,20 @@ public SsmlS SsmlBreak(SsmlBreak ssmlBreak) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// [System.Obsolete("This method is deprecated, use .Break() instead.")] public SsmlS SsmlBreak(SsmlBreak.StrengthEnum strength = null, string time = null) { return Break(strength, time); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis public SsmlS Emphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { var newChild = new SsmlEmphasis(words, level); @@ -85,10 +71,8 @@ public SsmlS Emphasis(string words = null, SsmlEmphasis.LevelEnum level = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlEmphasis instance. + /// Append a <Emphasis/> element as a child of this element + /// A SsmlEmphasis instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlS SsmlEmphasis(SsmlEmphasis ssmlEmphasis) { @@ -96,22 +80,18 @@ public SsmlS SsmlEmphasis(SsmlEmphasis ssmlEmphasis) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis [System.Obsolete("This method is deprecated, use .Emphasis() instead.")] public SsmlS SsmlEmphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { return Emphasis(words, level); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the language + /// Create a new <Lang/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the language public SsmlS Lang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) { var newChild = new SsmlLang(words, xmlLang); @@ -119,10 +99,8 @@ public SsmlS Lang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlLang instance. + /// Append a <Lang/> element as a child of this element + /// A SsmlLang instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlS SsmlLang(SsmlLang ssmlLang) { @@ -130,23 +108,19 @@ public SsmlS SsmlLang(SsmlLang ssmlLang) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the language + /// Create a new <Lang/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the language [System.Obsolete("This method is deprecated, use .Lang() instead.")] public SsmlS SsmlLang(string words = null, SsmlLang.XmlLangEnum xmlLang = null) { return Lang(words, xmlLang); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation public SsmlS Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { var newChild = new SsmlPhoneme(words, alphabet, ph); @@ -154,10 +128,8 @@ public SsmlS Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = nu return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlPhoneme instance. + /// Append a <Phoneme/> element as a child of this element + /// A SsmlPhoneme instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlS SsmlPhoneme(SsmlPhoneme ssmlPhoneme) { @@ -165,27 +137,23 @@ public SsmlS SsmlPhoneme(SsmlPhoneme ssmlPhoneme) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation [System.Obsolete("This method is deprecated, use .Phoneme() instead.")] public SsmlS SsmlPhoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { return Phoneme(words, alphabet, ph); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% public SsmlS Prosody(string words = null, string volume = null, string rate = null, string pitch = null) { var newChild = new SsmlProsody(words, volume, rate, pitch); @@ -193,10 +161,8 @@ public SsmlS Prosody(string words = null, string volume = null, string rate = nu return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlProsody instance. + /// Append a <Prosody/> element as a child of this element + /// A SsmlProsody instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlS SsmlProsody(SsmlProsody ssmlProsody) { @@ -204,27 +170,23 @@ public SsmlS SsmlProsody(SsmlProsody ssmlProsody) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% [System.Obsolete("This method is deprecated, use .Prosody() instead.")] public SsmlS SsmlProsody(string words = null, string volume = null, string rate = null, string pitch = null) { return Prosody(words, volume, rate, pitch); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date public SsmlS SayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, SsmlSayAs.FormatEnum format = null) @@ -234,10 +196,8 @@ public SsmlS SayAs(string words = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSayAs instance. + /// Append a <Say-As/> element as a child of this element + /// A SsmlSayAs instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlS SsmlSayAs(SsmlSayAs ssmlSayAs) { @@ -245,12 +205,10 @@ public SsmlS SsmlSayAs(SsmlSayAs ssmlSayAs) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date [System.Obsolete("This method is deprecated, use .SayAs() instead.")] public SsmlS SsmlSayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, @@ -259,12 +217,11 @@ public SsmlS SsmlSayAs(string words = null, return SayAs(words, interpretAs, format); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// public SsmlS Sub(string words = null, string alias = null) { var newChild = new SsmlSub(words, alias); @@ -272,10 +229,8 @@ public SsmlS Sub(string words = null, string alias = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSub instance. + /// Append a <Sub/> element as a child of this element + /// A SsmlSub instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlS SsmlSub(SsmlSub ssmlSub) { @@ -283,24 +238,22 @@ public SsmlS SsmlSub(SsmlSub ssmlSub) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// [System.Obsolete("This method is deprecated, use .Sub() instead.")] public SsmlS SsmlSub(string words = null, string alias = null) { return Sub(words, alias); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate - /// meaning + /// Create a new <W/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning + /// public SsmlS W(string words = null, string role = null) { var newChild = new SsmlW(words, role); @@ -308,10 +261,8 @@ public SsmlS W(string words = null, string role = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlW instance. + /// Append a <W/> element as a child of this element + /// A SsmlW instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlS SsmlW(SsmlW ssmlW) { @@ -319,32 +270,27 @@ public SsmlS SsmlW(SsmlW ssmlW) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate - /// meaning + /// Create a new <W/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning + /// [System.Obsolete("This method is deprecated, use .W() instead.")] public SsmlS SsmlW(string words = null, string role = null) { return W(words, role); } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new SsmlS Append(TwiML childElem) { return (SsmlS) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new SsmlS SetOption(string key, object value) { return (SsmlS) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/SsmlSayAs.cs b/src/Twilio/TwiML/Voice/SsmlSayAs.cs index 753c59dc6..2f2e10dd4 100644 --- a/src/Twilio/TwiML/Voice/SsmlSayAs.cs +++ b/src/Twilio/TwiML/Voice/SsmlSayAs.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -12,9 +12,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Controlling How Special Types of Words Are Spoken in Say - /// + /// Controlling How Special Types of Words Are Spoken in Say public class SsmlSayAs : TwiML { public sealed class InterpretAsEnum : StringEnum @@ -63,25 +61,19 @@ public static implicit operator FormatEnum(string value) public static readonly FormatEnum Yyyymmdd = new FormatEnum("yyyymmdd"); } - /// - /// Words to be interpreted - /// + /// Words to be interpreted public string Words { get; set; } - /// - /// Specify the type of words are spoken - /// + + /// Specify the type of words are spoken public SsmlSayAs.InterpretAsEnum InterpretAs { get; set; } - /// - /// Specify the format of the date when interpret-as is set to date - /// + + /// Specify the format of the date when interpret-as is set to date public SsmlSayAs.FormatEnum Format { get; set; } - /// - /// Create a new SsmlSayAs - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new SsmlSayAs + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date public SsmlSayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, SsmlSayAs.FormatEnum format = null) : base("say-as") @@ -91,17 +83,13 @@ public SsmlSayAs(string words = null, this.Format = format; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Words != null ? this.Words : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -116,20 +104,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new SsmlSayAs Append(TwiML childElem) { return (SsmlSayAs) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new SsmlSayAs SetOption(string key, object value) { return (SsmlSayAs) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/SsmlSub.cs b/src/Twilio/TwiML/Voice/SsmlSub.cs index c71dc29e0..a0006a73b 100644 --- a/src/Twilio/TwiML/Voice/SsmlSub.cs +++ b/src/Twilio/TwiML/Voice/SsmlSub.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -11,43 +11,33 @@ namespace Twilio.TwiML.Voice { - /// - /// Pronouncing Acronyms and Abbreviations in Say - /// + /// Pronouncing Acronyms and Abbreviations in Say public class SsmlSub : TwiML { - /// - /// Words to be substituted - /// + /// Words to be substituted public string Words { get; set; } - /// - /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation - /// + + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation public string Alias { get; set; } - /// - /// Create a new SsmlSub - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new SsmlSub + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// public SsmlSub(string words = null, string alias = null) : base("sub") { this.Words = words; this.Alias = alias; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Words != null ? this.Words : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -58,20 +48,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new SsmlSub Append(TwiML childElem) { return (SsmlSub) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new SsmlSub SetOption(string key, object value) { return (SsmlSub) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/SsmlW.cs b/src/Twilio/TwiML/Voice/SsmlW.cs index 8fe0ff50c..0f505ebf9 100644 --- a/src/Twilio/TwiML/Voice/SsmlW.cs +++ b/src/Twilio/TwiML/Voice/SsmlW.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -11,43 +11,33 @@ namespace Twilio.TwiML.Voice { - /// - /// Improving Pronunciation by Specifying Parts of Speech in Say - /// + /// Improving Pronunciation by Specifying Parts of Speech in Say public class SsmlW : TwiML { - /// - /// Words to speak - /// + /// Words to speak public string Words { get; set; } - /// - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning - /// + + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning public string Role { get; set; } - /// - /// Create a new SsmlW - /// - /// Words to speak, the body of the TwiML Element. - /// Customize the pronunciation of words by specifying the word’s part of speech or alternate - /// meaning + /// Create a new SsmlW + /// Words to speak, the body of the TwiML Element. + /// + /// Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning + /// public SsmlW(string words = null, string role = null) : base("w") { this.Words = words; this.Role = role; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Words != null ? this.Words : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -58,12 +48,11 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// public SsmlW Break(SsmlBreak.StrengthEnum strength = null, string time = null) { var newChild = new SsmlBreak(strength, time); @@ -71,10 +60,8 @@ public SsmlW Break(SsmlBreak.StrengthEnum strength = null, string time = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlBreak instance. + /// Append a <Break/> element as a child of this element + /// A SsmlBreak instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlW SsmlBreak(SsmlBreak ssmlBreak) { @@ -82,23 +69,20 @@ public SsmlW SsmlBreak(SsmlBreak ssmlBreak) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Set a pause based on strength - /// Set a pause to a specific length of time in seconds or milliseconds, available values: - /// [number]s, [number]ms + /// Create a new <Break/> element and append it as a child of this element. + /// Set a pause based on strength + /// + /// Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms + /// [System.Obsolete("This method is deprecated, use .Break() instead.")] public SsmlW SsmlBreak(SsmlBreak.StrengthEnum strength = null, string time = null) { return Break(strength, time); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis public SsmlW Emphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { var newChild = new SsmlEmphasis(words, level); @@ -106,10 +90,8 @@ public SsmlW Emphasis(string words = null, SsmlEmphasis.LevelEnum level = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlEmphasis instance. + /// Append a <Emphasis/> element as a child of this element + /// A SsmlEmphasis instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlW SsmlEmphasis(SsmlEmphasis ssmlEmphasis) { @@ -117,23 +99,19 @@ public SsmlW SsmlEmphasis(SsmlEmphasis ssmlEmphasis) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to emphasize, the body of the TwiML Element. - /// Specify the degree of emphasis + /// Create a new <Emphasis/> element and append it as a child of this element. + /// Words to emphasize, the body of the TwiML Element. + /// Specify the degree of emphasis [System.Obsolete("This method is deprecated, use .Emphasis() instead.")] public SsmlW SsmlEmphasis(string words = null, SsmlEmphasis.LevelEnum level = null) { return Emphasis(words, level); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation public SsmlW Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { var newChild = new SsmlPhoneme(words, alphabet, ph); @@ -141,10 +119,8 @@ public SsmlW Phoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = nu return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlPhoneme instance. + /// Append a <Phoneme/> element as a child of this element + /// A SsmlPhoneme instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlW SsmlPhoneme(SsmlPhoneme ssmlPhoneme) { @@ -152,27 +128,23 @@ public SsmlW SsmlPhoneme(SsmlPhoneme ssmlPhoneme) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the phonetic alphabet - /// Specifiy the phonetic symbols for pronunciation + /// Create a new <Phoneme/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// Specify the phonetic alphabet + /// Specifiy the phonetic symbols for pronunciation [System.Obsolete("This method is deprecated, use .Phoneme() instead.")] public SsmlW SsmlPhoneme(string words = null, SsmlPhoneme.AlphabetEnum alphabet = null, string ph = null) { return Phoneme(words, alphabet, ph); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% public SsmlW Prosody(string words = null, string volume = null, string rate = null, string pitch = null) { var newChild = new SsmlProsody(words, volume, rate, pitch); @@ -180,10 +152,8 @@ public SsmlW Prosody(string words = null, string volume = null, string rate = nu return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlProsody instance. + /// Append a <Prosody/> element as a child of this element + /// A SsmlProsody instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlW SsmlProsody(SsmlProsody ssmlProsody) { @@ -191,27 +161,23 @@ public SsmlW SsmlProsody(SsmlProsody ssmlProsody) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to speak, the body of the TwiML Element. - /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, - /// +ndB, -ndB - /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - /// + /// Create a new <Prosody/> element and append it as a child of this element. + /// Words to speak, the body of the TwiML Element. + /// + /// Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB + /// + /// Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% + /// Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% [System.Obsolete("This method is deprecated, use .Prosody() instead.")] public SsmlW SsmlProsody(string words = null, string volume = null, string rate = null, string pitch = null) { return Prosody(words, volume, rate, pitch); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date public SsmlW SayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, SsmlSayAs.FormatEnum format = null) @@ -221,10 +187,8 @@ public SsmlW SayAs(string words = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSayAs instance. + /// Append a <Say-As/> element as a child of this element + /// A SsmlSayAs instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlW SsmlSayAs(SsmlSayAs ssmlSayAs) { @@ -232,12 +196,10 @@ public SsmlW SsmlSayAs(SsmlSayAs ssmlSayAs) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be interpreted, the body of the TwiML Element. - /// Specify the type of words are spoken - /// Specify the format of the date when interpret-as is set to date + /// Create a new <Say-As/> element and append it as a child of this element. + /// Words to be interpreted, the body of the TwiML Element. + /// Specify the type of words are spoken + /// Specify the format of the date when interpret-as is set to date [System.Obsolete("This method is deprecated, use .SayAs() instead.")] public SsmlW SsmlSayAs(string words = null, SsmlSayAs.InterpretAsEnum interpretAs = null, @@ -246,12 +208,11 @@ public SsmlW SsmlSayAs(string words = null, return SayAs(words, interpretAs, format); } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// public SsmlW Sub(string words = null, string alias = null) { var newChild = new SsmlSub(words, alias); @@ -259,10 +220,8 @@ public SsmlW Sub(string words = null, string alias = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A SsmlSub instance. + /// Append a <Sub/> element as a child of this element + /// A SsmlSub instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public SsmlW SsmlSub(SsmlSub ssmlSub) { @@ -270,32 +229,27 @@ public SsmlW SsmlSub(SsmlSub ssmlSub) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Words to be substituted, the body of the TwiML Element. - /// Substitute a different word (or pronunciation) for selected text such as an acronym or - /// abbreviation + /// Create a new <Sub/> element and append it as a child of this element. + /// Words to be substituted, the body of the TwiML Element. + /// + /// Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation + /// [System.Obsolete("This method is deprecated, use .Sub() instead.")] public SsmlW SsmlSub(string words = null, string alias = null) { return Sub(words, alias); } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new SsmlW Append(TwiML childElem) { return (SsmlW) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new SsmlW SetOption(string key, object value) { return (SsmlW) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Start.cs b/src/Twilio/TwiML/Voice/Start.cs index 114793d6a..4d3d4b045 100644 --- a/src/Twilio/TwiML/Voice/Start.cs +++ b/src/Twilio/TwiML/Voice/Start.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -13,34 +13,25 @@ namespace Twilio.TwiML.Voice { - /// - /// Start TwiML Verb - /// + /// Start TwiML Verb public class Start : TwiML { - /// - /// Action URL - /// + /// Action URL public Uri Action { get; set; } - /// - /// Action URL method - /// + + /// Action URL method public Twilio.Http.HttpMethod Method { get; set; } - /// - /// Create a new Start - /// - /// Action URL - /// Action URL method + /// Create a new Start + /// Action URL + /// Action URL method public Start(Uri action = null, Twilio.Http.HttpMethod method = null) : base("Start") { this.Action = action; this.Method = method; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -55,15 +46,13 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Friendly name given to the Stream - /// Unique name for Stream Connector - /// URL of the remote service where the Stream is routed - /// Track to be streamed to remote service - /// Status Callback URL - /// Status Callback URL method + /// Create a new <Stream/> element and append it as a child of this element. + /// Friendly name given to the Stream + /// Unique name for Stream Connector + /// URL of the remote service where the Stream is routed + /// Track to be streamed to remote service + /// Status Callback URL + /// Status Callback URL method public Start Stream(string name = null, string connectorName = null, string url = null, @@ -76,10 +65,8 @@ public Start Stream(string name = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Stream instance. + /// Append a <Stream/> element as a child of this element + /// A Stream instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Start Stream(Stream stream) { @@ -87,12 +74,10 @@ public Start Stream(Stream stream) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Friendly name given to SIPREC - /// Unique name for Connector - /// Track to be streamed to remote service + /// Create a new <Siprec/> element and append it as a child of this element. + /// Friendly name given to SIPREC + /// Unique name for Connector + /// Track to be streamed to remote service public Start Siprec(string name = null, string connectorName = null, Siprec.TrackEnum track = null) { var newChild = new Siprec(name, connectorName, track); @@ -100,10 +85,8 @@ public Start Siprec(string name = null, string connectorName = null, Siprec.Trac return this; } - /// - /// Append a element as a child of this element - /// - /// A Siprec instance. + /// Append a <Siprec/> element as a child of this element + /// A Siprec instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Start Siprec(Siprec siprec) { @@ -111,20 +94,16 @@ public Start Siprec(Siprec siprec) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Start Append(TwiML childElem) { return (Start) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Start SetOption(string key, object value) { return (Start) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Stop.cs b/src/Twilio/TwiML/Voice/Stop.cs index 35e0a8950..2f5f7c287 100644 --- a/src/Twilio/TwiML/Voice/Stop.cs +++ b/src/Twilio/TwiML/Voice/Stop.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.IO; using System.Text; @@ -10,27 +10,21 @@ namespace Twilio.TwiML.Voice { - /// - /// Stop TwiML Verb - /// + /// Stop TwiML Verb public class Stop : TwiML { - /// - /// Create a new Stop - /// + /// Create a new Stop public Stop() : base("Stop") { } - /// - /// Create a new element and append it as a child of this element. - /// - /// Friendly name given to the Stream - /// Unique name for Stream Connector - /// URL of the remote service where the Stream is routed - /// Track to be streamed to remote service - /// Status Callback URL - /// Status Callback URL method + /// Create a new <Stream/> element and append it as a child of this element. + /// Friendly name given to the Stream + /// Unique name for Stream Connector + /// URL of the remote service where the Stream is routed + /// Track to be streamed to remote service + /// Status Callback URL + /// Status Callback URL method public Stop Stream(string name = null, string connectorName = null, string url = null, @@ -43,10 +37,8 @@ public Stop Stream(string name = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Stream instance. + /// Append a <Stream/> element as a child of this element + /// A Stream instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Stop Stream(Stream stream) { @@ -54,12 +46,10 @@ public Stop Stream(Stream stream) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Friendly name given to SIPREC - /// Unique name for Connector - /// Track to be streamed to remote service + /// Create a new <Siprec/> element and append it as a child of this element. + /// Friendly name given to SIPREC + /// Unique name for Connector + /// Track to be streamed to remote service public Stop Siprec(string name = null, string connectorName = null, Siprec.TrackEnum track = null) { var newChild = new Siprec(name, connectorName, track); @@ -67,10 +57,8 @@ public Stop Siprec(string name = null, string connectorName = null, Siprec.Track return this; } - /// - /// Append a element as a child of this element - /// - /// A Siprec instance. + /// Append a <Siprec/> element as a child of this element + /// A Siprec instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Stop Siprec(Siprec siprec) { @@ -78,20 +66,16 @@ public Stop Siprec(Siprec siprec) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Stop Append(TwiML childElem) { return (Stop) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Stop SetOption(string key, object value) { return (Stop) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Stream.cs b/src/Twilio/TwiML/Voice/Stream.cs index 49d3bee8b..55c089b0c 100644 --- a/src/Twilio/TwiML/Voice/Stream.cs +++ b/src/Twilio/TwiML/Voice/Stream.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -12,9 +12,7 @@ namespace Twilio.TwiML.Voice { - /// - /// Stream TwiML Noun - /// + /// Stream TwiML Noun public class Stream : TwiML { public sealed class TrackEnum : StringEnum @@ -44,40 +42,31 @@ public static implicit operator StatusCallbackMethodEnum(string value) public static readonly StatusCallbackMethodEnum Post = new StatusCallbackMethodEnum("POST"); } - /// - /// Friendly name given to the Stream - /// + /// Friendly name given to the Stream public string Name { get; set; } - /// - /// Unique name for Stream Connector - /// + + /// Unique name for Stream Connector public string ConnectorName { get; set; } - /// - /// URL of the remote service where the Stream is routed - /// + + /// URL of the remote service where the Stream is routed public string Url { get; set; } - /// - /// Track to be streamed to remote service - /// + + /// Track to be streamed to remote service public Stream.TrackEnum Track { get; set; } - /// - /// Status Callback URL - /// + + /// Status Callback URL public string StatusCallback { get; set; } - /// - /// Status Callback URL method - /// + + /// Status Callback URL method public Stream.StatusCallbackMethodEnum StatusCallbackMethod { get; set; } - /// - /// Create a new Stream - /// - /// Friendly name given to the Stream - /// Unique name for Stream Connector - /// URL of the remote service where the Stream is routed - /// Track to be streamed to remote service - /// Status Callback URL - /// Status Callback URL method + /// Create a new Stream + /// Friendly name given to the Stream + /// Unique name for Stream Connector + /// URL of the remote service where the Stream is routed + /// Track to be streamed to remote service + /// Status Callback URL + /// Status Callback URL method public Stream(string name = null, string connectorName = null, string url = null, @@ -93,9 +82,7 @@ public Stream(string name = null, this.StatusCallbackMethod = statusCallbackMethod; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -126,11 +113,9 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// The name of the custom parameter - /// The value of the custom parameter + /// Create a new <Parameter/> element and append it as a child of this element. + /// The name of the custom parameter + /// The value of the custom parameter public Stream Parameter(string name = null, string value = null) { var newChild = new Parameter(name, value); @@ -138,10 +123,8 @@ public Stream Parameter(string name = null, string value = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Parameter instance. + /// Append a <Parameter/> element as a child of this element + /// A Parameter instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public Stream Parameter(Parameter parameter) { @@ -149,20 +132,16 @@ public Stream Parameter(Parameter parameter) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Stream Append(TwiML childElem) { return (Stream) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Stream SetOption(string key, object value) { return (Stream) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/Task.cs b/src/Twilio/TwiML/Voice/Task.cs index 49ffeca4f..778487905 100644 --- a/src/Twilio/TwiML/Voice/Task.cs +++ b/src/Twilio/TwiML/Voice/Task.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -11,31 +11,24 @@ namespace Twilio.TwiML.Voice { - /// - /// Task TwiML Noun - /// + /// Task TwiML Noun public class Task : TwiML { - /// - /// TaskRouter task attributes - /// + /// TaskRouter task attributes public string Body { get; set; } - /// - /// Task priority - /// + + /// Task priority public int? Priority { get; set; } - /// - /// Timeout associated with task - /// + + /// Timeout associated with task public int? Timeout { get; set; } - /// - /// Create a new Task - /// - /// TaskRouter task attributes, the body of the TwiML Element. Also accepts stringified object - /// - /// Task priority - /// Timeout associated with task + /// Create a new Task + /// + /// TaskRouter task attributes, the body of the TwiML Element. Also accepts stringified object + /// + /// Task priority + /// Timeout associated with task public Task(string body = null, int? priority = null, int? timeout = null) : base("Task") { this.Body = body; @@ -43,17 +36,13 @@ public Task(string body = null, int? priority = null, int? timeout = null) : bas this.Timeout = timeout; } - /// - /// Return the body of the TwiML tag - /// + /// Return the body of the TwiML tag protected override string GetElementBody() { return this.Body != null ? this.Body : string.Empty; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -68,20 +57,16 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new Task Append(TwiML childElem) { return (Task) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new Task SetOption(string key, object value) { return (Task) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/Voice/VirtualAgent.cs b/src/Twilio/TwiML/Voice/VirtualAgent.cs index 8b7cceb55..60865c286 100644 --- a/src/Twilio/TwiML/Voice/VirtualAgent.cs +++ b/src/Twilio/TwiML/Voice/VirtualAgent.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System.Collections.Generic; using System.IO; @@ -11,40 +11,30 @@ namespace Twilio.TwiML.Voice { - /// - /// VirtualAgent TwiML Noun - /// + /// VirtualAgent TwiML Noun public class VirtualAgent : TwiML { - /// - /// Defines the conversation profile Dialogflow needs to use - /// + /// Defines the conversation profile Dialogflow needs to use public string ConnectorName { get; set; } - /// - /// Language to be used by Dialogflow to transcribe speech - /// + + /// Language to be used by Dialogflow to transcribe speech public string Language { get; set; } - /// - /// Whether sentiment analysis needs to be enabled or not - /// + + /// Whether sentiment analysis needs to be enabled or not public bool? SentimentAnalysis { get; set; } - /// - /// URL to post status callbacks from Twilio - /// + + /// URL to post status callbacks from Twilio public string StatusCallback { get; set; } - /// - /// HTTP method to use when requesting the status callback URL - /// + + /// HTTP method to use when requesting the status callback URL public Twilio.Http.HttpMethod StatusCallbackMethod { get; set; } - /// - /// Create a new VirtualAgent - /// - /// Defines the conversation profile Dialogflow needs to use - /// Language to be used by Dialogflow to transcribe speech - /// Whether sentiment analysis needs to be enabled or not - /// URL to post status callbacks from Twilio - /// HTTP method to use when requesting the status callback URL + /// Create a new VirtualAgent + /// Defines the conversation profile Dialogflow needs to use + /// Language to be used by Dialogflow to transcribe speech + /// Whether sentiment analysis needs to be enabled or not + /// URL to post status callbacks from Twilio + /// HTTP method to use when requesting the status callback URL public VirtualAgent(string connectorName = null, string language = null, bool? sentimentAnalysis = null, @@ -58,9 +48,7 @@ public VirtualAgent(string connectorName = null, this.StatusCallbackMethod = statusCallbackMethod; } - /// - /// Return the attributes of the TwiML tag - /// + /// Return the attributes of the TwiML tag protected override List GetElementAttributes() { var attributes = new List(); @@ -87,11 +75,9 @@ protected override List GetElementAttributes() return attributes; } - /// - /// Create a new element and append it as a child of this element. - /// - /// The name of the custom config - /// The value of the custom config + /// Create a new <Config/> element and append it as a child of this element. + /// The name of the custom config + /// The value of the custom config public VirtualAgent Config(string name = null, string value = null) { var newChild = new Config(name, value); @@ -99,10 +85,8 @@ public VirtualAgent Config(string name = null, string value = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Config instance. + /// Append a <Config/> element as a child of this element + /// A Config instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VirtualAgent Config(Config config) { @@ -110,11 +94,9 @@ public VirtualAgent Config(Config config) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// The name of the custom parameter - /// The value of the custom parameter + /// Create a new <Parameter/> element and append it as a child of this element. + /// The name of the custom parameter + /// The value of the custom parameter public VirtualAgent Parameter(string name = null, string value = null) { var newChild = new Parameter(name, value); @@ -122,10 +104,8 @@ public VirtualAgent Parameter(string name = null, string value = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Parameter instance. + /// Append a <Parameter/> element as a child of this element + /// A Parameter instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VirtualAgent Parameter(Parameter parameter) { @@ -133,20 +113,16 @@ public VirtualAgent Parameter(Parameter parameter) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new VirtualAgent Append(TwiML childElem) { return (VirtualAgent) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new VirtualAgent SetOption(string key, object value) { return (VirtualAgent) base.SetOption(key, value); diff --git a/src/Twilio/TwiML/VoiceResponse.cs b/src/Twilio/TwiML/VoiceResponse.cs index 6de42ffa0..a61dadefd 100644 --- a/src/Twilio/TwiML/VoiceResponse.cs +++ b/src/Twilio/TwiML/VoiceResponse.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using System; using System.Collections.Generic; @@ -14,23 +14,17 @@ namespace Twilio.TwiML { - /// - /// Response TwiML for Voice - /// + /// Response TwiML for Voice public class VoiceResponse : TwiML { - /// - /// Create a new VoiceResponse - /// + /// Create a new VoiceResponse public VoiceResponse() : base("Response") { } - /// - /// Create a new element and append it as a child of this element. - /// - /// Action URL - /// Action URL method + /// Create a new <Connect/> element and append it as a child of this element. + /// Action URL + /// Action URL method public VoiceResponse Connect(Uri action = null, Twilio.Http.HttpMethod method = null) { var newChild = new Connect(action, method); @@ -38,10 +32,8 @@ public VoiceResponse Connect(Uri action = null, Twilio.Http.HttpMethod method = return this; } - /// - /// Append a element as a child of this element - /// - /// A Connect instance. + /// Append a <Connect/> element as a child of this element + /// A Connect instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Connect(Connect connect) { @@ -49,30 +41,32 @@ public VoiceResponse Connect(Connect connect) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Phone number to dial, the body of the TwiML Element. - /// Action URL - /// Action URL method - /// Time to wait for answer - /// Hangup call on star press - /// Max time length - /// Caller ID to display - /// Record the call - /// Trim the recording - /// Recording status callback URL - /// Recording status callback URL method - /// Recording status callback events - /// Preserve the ringing behavior of the inbound call until the Dialed call picks up - /// - /// Ringtone allows you to override the ringback tone that Twilio will play back to the caller - /// while executing the Dial - /// To indicate which audio track should be recorded - /// Used to determine if child TwiML nouns should be dialed in order, one after the other - /// (sequential) or dial all at once (parallel). Default is false, parallel - /// Webhook that will receive future SIP REFER requests - /// The HTTP method to use for the refer Webhook + /// Create a new <Dial/> element and append it as a child of this element. + /// Phone number to dial, the body of the TwiML Element. + /// Action URL + /// Action URL method + /// Time to wait for answer + /// Hangup call on star press + /// Max time length + /// Caller ID to display + /// Record the call + /// Trim the recording + /// Recording status callback URL + /// Recording status callback URL method + /// Recording status callback events + /// + /// Preserve the ringing behavior of the inbound call until the Dialed call picks up + /// + /// + /// Ringtone allows you to override the ringback tone that Twilio will play back to the caller while executing the Dial + /// + /// To indicate which audio track should be recorded + /// + /// Used to determine if child TwiML nouns should be dialed in order, one after the other (sequential) or dial all at + /// once (parallel). Default is false, parallel + /// + /// Webhook that will receive future SIP REFER requests + /// The HTTP method to use for the refer Webhook public VoiceResponse Dial(string number = null, Uri action = null, Twilio.Http.HttpMethod method = null, @@ -84,7 +78,7 @@ public VoiceResponse Dial(string number = null, Dial.TrimEnum trim = null, Uri recordingStatusCallback = null, Twilio.Http.HttpMethod recordingStatusCallbackMethod = null, - List recordingStatusCallbackEvent = null, + IEnumerable recordingStatusCallbackEvent = null, bool? answerOnBridge = null, Dial.RingToneEnum ringTone = null, Dial.RecordingTrackEnum recordingTrack = null, @@ -116,10 +110,8 @@ public VoiceResponse Dial(string number = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Dial instance. + /// Append a <Dial/> element as a child of this element + /// A Dial instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Dial(Dial dial) { @@ -127,9 +119,7 @@ public VoiceResponse Dial(Dial dial) return this; } - /// - /// Create a new element and append it as a child of this element. - /// + /// Create a new <Echo/> element and append it as a child of this element. public VoiceResponse Echo() { var newChild = new Echo(); @@ -137,10 +127,8 @@ public VoiceResponse Echo() return this; } - /// - /// Append a element as a child of this element - /// - /// A Echo instance. + /// Append a <Echo/> element as a child of this element + /// A Echo instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Echo(Echo echo) { @@ -148,16 +136,14 @@ public VoiceResponse Echo(Echo echo) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Friendly name, the body of the TwiML Element. - /// Action URL - /// Maximum size of queue - /// Action URL method - /// Wait URL - /// Wait URL method - /// TaskRouter Workflow SID + /// Create a new <Enqueue/> element and append it as a child of this element. + /// Friendly name, the body of the TwiML Element. + /// Action URL + /// Maximum size of queue + /// Action URL method + /// Wait URL + /// Wait URL method + /// TaskRouter Workflow SID public VoiceResponse Enqueue(string name = null, Uri action = null, int? maxQueueSize = null, @@ -171,10 +157,8 @@ public VoiceResponse Enqueue(string name = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Enqueue instance. + /// Append a <Enqueue/> element as a child of this element + /// A Enqueue instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Enqueue(Enqueue enqueue) { @@ -182,29 +166,28 @@ public VoiceResponse Enqueue(Enqueue enqueue) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Input type Twilio should accept - /// Action URL - /// Action URL method - /// Time to wait to gather input - /// Time to wait to gather speech input and it should be either auto or a positive - /// integer. - /// Max allowed time for speech input - /// Profanity Filter on speech - /// Finish gather on key - /// Number of digits to collect - /// Partial result callback URL - /// Partial result callback URL method - /// Language to use - /// Speech recognition hints - /// Stop playing media upon speech - /// Allow debug for gather - /// Force webhook to the action URL event if there is no input - /// Specify the model that is best suited for your use case - /// Use enhanced speech model - public VoiceResponse Gather(List input = null, + /// Create a new <Gather/> element and append it as a child of this element. + /// Input type Twilio should accept + /// Action URL + /// Action URL method + /// Time to wait to gather input + /// + /// Time to wait to gather speech input and it should be either auto or a positive integer. + /// + /// Max allowed time for speech input + /// Profanity Filter on speech + /// Finish gather on key + /// Number of digits to collect + /// Partial result callback URL + /// Partial result callback URL method + /// Language to use + /// Speech recognition hints + /// Stop playing media upon speech + /// Allow debug for gather + /// Force webhook to the action URL event if there is no input + /// Specify the model that is best suited for your use case + /// Use enhanced speech model + public VoiceResponse Gather(IEnumerable input = null, Uri action = null, Twilio.Http.HttpMethod method = null, int? timeout = null, @@ -247,10 +230,8 @@ public VoiceResponse Gather(List input = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Gather instance. + /// Append a <Gather/> element as a child of this element + /// A Gather instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Gather(Gather gather) { @@ -258,9 +239,7 @@ public VoiceResponse Gather(Gather gather) return this; } - /// - /// Create a new element and append it as a child of this element. - /// + /// Create a new <Hangup/> element and append it as a child of this element. public VoiceResponse Hangup() { var newChild = new Hangup(); @@ -268,10 +247,8 @@ public VoiceResponse Hangup() return this; } - /// - /// Append a element as a child of this element - /// - /// A Hangup instance. + /// Append a <Hangup/> element as a child of this element + /// A Hangup instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Hangup(Hangup hangup) { @@ -279,9 +256,7 @@ public VoiceResponse Hangup(Hangup hangup) return this; } - /// - /// Create a new element and append it as a child of this element. - /// + /// Create a new <Leave/> element and append it as a child of this element. public VoiceResponse Leave() { var newChild = new Leave(); @@ -289,10 +264,8 @@ public VoiceResponse Leave() return this; } - /// - /// Append a element as a child of this element - /// - /// A Leave instance. + /// Append a <Leave/> element as a child of this element + /// A Leave instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Leave(Leave leave) { @@ -300,10 +273,8 @@ public VoiceResponse Leave(Leave leave) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Length in seconds to pause + /// Create a new <Pause/> element and append it as a child of this element. + /// Length in seconds to pause public VoiceResponse Pause(int? length = null) { var newChild = new Pause(length); @@ -311,10 +282,8 @@ public VoiceResponse Pause(int? length = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Pause instance. + /// Append a <Pause/> element as a child of this element + /// A Pause instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Pause(Pause pause) { @@ -322,12 +291,10 @@ public VoiceResponse Pause(Pause pause) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Media URL, the body of the TwiML Element. - /// Times to loop media - /// Play DTMF tones for digits + /// Create a new <Play/> element and append it as a child of this element. + /// Media URL, the body of the TwiML Element. + /// Times to loop media + /// Play DTMF tones for digits public VoiceResponse Play(Uri url = null, int? loop = null, string digits = null) { var newChild = new Play(url, loop, digits); @@ -335,10 +302,8 @@ public VoiceResponse Play(Uri url = null, int? loop = null, string digits = null return this; } - /// - /// Append a element as a child of this element - /// - /// A Play instance. + /// Append a <Play/> element as a child of this element + /// A Play instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Play(Play play) { @@ -346,14 +311,12 @@ public VoiceResponse Play(Play play) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Queue name, the body of the TwiML Element. - /// Action URL - /// Action URL method - /// TaskRouter Reservation SID - /// TaskRouter Activity SID + /// Create a new <Queue/> element and append it as a child of this element. + /// Queue name, the body of the TwiML Element. + /// Action URL + /// Action URL method + /// TaskRouter Reservation SID + /// TaskRouter Activity SID public VoiceResponse Queue(string name = null, Uri url = null, Twilio.Http.HttpMethod method = null, @@ -365,10 +328,8 @@ public VoiceResponse Queue(string name = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Queue instance. + /// Append a <Queue/> element as a child of this element + /// A Queue instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Queue(Queue queue) { @@ -376,21 +337,19 @@ public VoiceResponse Queue(Queue queue) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Action URL - /// Action URL method - /// Timeout to begin recording - /// Finish recording on key - /// Max time to record in seconds - /// Play beep - /// Trim the recording - /// Status callback URL - /// Status callback URL method - /// Recording status callback events - /// Transcribe the recording - /// Transcribe callback URL + /// Create a new <Record/> element and append it as a child of this element. + /// Action URL + /// Action URL method + /// Timeout to begin recording + /// Finish recording on key + /// Max time to record in seconds + /// Play beep + /// Trim the recording + /// Status callback URL + /// Status callback URL method + /// Recording status callback events + /// Transcribe the recording + /// Transcribe callback URL public VoiceResponse Record(Uri action = null, Twilio.Http.HttpMethod method = null, int? timeout = null, @@ -400,7 +359,7 @@ public VoiceResponse Record(Uri action = null, Record.TrimEnum trim = null, Uri recordingStatusCallback = null, Twilio.Http.HttpMethod recordingStatusCallbackMethod = null, - List recordingStatusCallbackEvent = null, + IEnumerable recordingStatusCallbackEvent = null, bool? transcribe = null, Uri transcribeCallback = null) { @@ -422,10 +381,8 @@ public VoiceResponse Record(Uri action = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Record instance. + /// Append a <Record/> element as a child of this element + /// A Record instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Record(Record record) { @@ -433,11 +390,9 @@ public VoiceResponse Record(Record record) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Redirect URL, the body of the TwiML Element. - /// Redirect URL method + /// Create a new <Redirect/> element and append it as a child of this element. + /// Redirect URL, the body of the TwiML Element. + /// Redirect URL method public VoiceResponse Redirect(Uri url = null, Twilio.Http.HttpMethod method = null) { var newChild = new Redirect(url, method); @@ -445,10 +400,8 @@ public VoiceResponse Redirect(Uri url = null, Twilio.Http.HttpMethod method = nu return this; } - /// - /// Append a element as a child of this element - /// - /// A Redirect instance. + /// Append a <Redirect/> element as a child of this element + /// A Redirect instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Redirect(Redirect redirect) { @@ -456,10 +409,8 @@ public VoiceResponse Redirect(Redirect redirect) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Rejection reason + /// Create a new <Reject/> element and append it as a child of this element. + /// Rejection reason public VoiceResponse Reject(Reject.ReasonEnum reason = null) { var newChild = new Reject(reason); @@ -467,10 +418,8 @@ public VoiceResponse Reject(Reject.ReasonEnum reason = null) return this; } - /// - /// Append a element as a child of this element - /// - /// A Reject instance. + /// Append a <Reject/> element as a child of this element + /// A Reject instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Reject(Reject reject) { @@ -478,13 +427,11 @@ public VoiceResponse Reject(Reject reject) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Message to say, the body of the TwiML Element. - /// Voice to use - /// Times to loop message - /// Message language + /// Create a new <Say/> element and append it as a child of this element. + /// Message to say, the body of the TwiML Element. + /// Voice to use + /// Times to loop message + /// Message language public VoiceResponse Say(string message = null, Say.VoiceEnum voice = null, int? loop = null, @@ -495,10 +442,8 @@ public VoiceResponse Say(string message = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Say instance. + /// Append a <Say/> element as a child of this element + /// A Say instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Say(Say say) { @@ -506,15 +451,13 @@ public VoiceResponse Say(Say say) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Message body, the body of the TwiML Element. - /// Number to send message to - /// Number to send message from - /// Action URL - /// Action URL method - /// Status callback URL + /// Create a new <Sms/> element and append it as a child of this element. + /// Message body, the body of the TwiML Element. + /// Number to send message to + /// Number to send message from + /// Action URL + /// Action URL method + /// Status callback URL public VoiceResponse Sms(string message = null, Types.PhoneNumber to = null, Types.PhoneNumber from = null, @@ -527,10 +470,8 @@ public VoiceResponse Sms(string message = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Sms instance. + /// Append a <Sms/> element as a child of this element + /// A Sms instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Sms(Sms sms) { @@ -538,29 +479,30 @@ public VoiceResponse Sms(Sms sms) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Input type Twilio should accept - /// Action URL - /// Bank account type for ach transactions. If set, payment method attribute must be - /// provided and value should be set to ach-debit. defaults to consumer-checking - /// Status callback URL - /// Status callback method - /// Time to wait to gather input - /// Maximum number of allowed retries when gathering input - /// Prompt for security code - /// Prompt for postal code and it should be true/false or default postal code - /// Prompt for minimum postal code length - /// Unique name for payment connector - /// Payment method to be used. defaults to credit-card - /// Type of token - /// Amount to process. If value is greater than 0 then make the payment else create a - /// payment token - /// Currency of the amount attribute - /// Details regarding the payment - /// Comma separated accepted card types - /// Language to use + /// Create a new <Pay/> element and append it as a child of this element. + /// Input type Twilio should accept + /// Action URL + /// + /// Bank account type for ach transactions. If set, payment method attribute must be provided and value should be set to + /// ach-debit. defaults to consumer-checking + /// + /// Status callback URL + /// Status callback method + /// Time to wait to gather input + /// Maximum number of allowed retries when gathering input + /// Prompt for security code + /// Prompt for postal code and it should be true/false or default postal code + /// Prompt for minimum postal code length + /// Unique name for payment connector + /// Payment method to be used. defaults to credit-card + /// Type of token + /// + /// Amount to process. If value is greater than 0 then make the payment else create a payment token + /// + /// Currency of the amount attribute + /// Details regarding the payment + /// Comma separated accepted card types + /// Language to use public VoiceResponse Pay(Pay.InputEnum input = null, Uri action = null, Pay.BankAccountTypeEnum bankAccountType = null, @@ -577,7 +519,7 @@ public VoiceResponse Pay(Pay.InputEnum input = null, string chargeAmount = null, string currency = null, string description = null, - List validCardTypes = null, + IEnumerable validCardTypes = null, Pay.LanguageEnum language = null) { var newChild = new Pay( @@ -604,10 +546,8 @@ public VoiceResponse Pay(Pay.InputEnum input = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Pay instance. + /// Append a <Pay/> element as a child of this element + /// A Pay instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Pay(Pay pay) { @@ -615,19 +555,18 @@ public VoiceResponse Pay(Pay pay) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Name of the payment source data element - /// Type of error - /// Type of the credit card - /// Current attempt count - /// Require customer to input requested information twice and verify matching. - /// + /// Create a new <Prompt/> element and append it as a child of this element. + /// Name of the payment source data element + /// Type of error + /// Type of the credit card + /// Current attempt count + /// + /// Require customer to input requested information twice and verify matching. + /// public VoiceResponse Prompt(Prompt.ForEnum for_ = null, - List errorType = null, - List cardType = null, - List attempt = null, + IEnumerable errorType = null, + IEnumerable cardType = null, + IEnumerable attempt = null, bool? requireMatchingInputs = null) { var newChild = new Prompt(for_, errorType, cardType, attempt, requireMatchingInputs); @@ -635,10 +574,8 @@ public VoiceResponse Prompt(Prompt.ForEnum for_ = null, return this; } - /// - /// Append a element as a child of this element - /// - /// A Prompt instance. + /// Append a <Prompt/> element as a child of this element + /// A Prompt instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Prompt(Prompt prompt) { @@ -646,11 +583,9 @@ public VoiceResponse Prompt(Prompt prompt) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Action URL - /// Action URL method + /// Create a new <Start/> element and append it as a child of this element. + /// Action URL + /// Action URL method public VoiceResponse Start(Uri action = null, Twilio.Http.HttpMethod method = null) { var newChild = new Start(action, method); @@ -658,10 +593,8 @@ public VoiceResponse Start(Uri action = null, Twilio.Http.HttpMethod method = nu return this; } - /// - /// Append a element as a child of this element - /// - /// A Start instance. + /// Append a <Start/> element as a child of this element + /// A Start instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Start(Start start) { @@ -669,9 +602,7 @@ public VoiceResponse Start(Start start) return this; } - /// - /// Create a new element and append it as a child of this element. - /// + /// Create a new <Stop/> element and append it as a child of this element. public VoiceResponse Stop() { var newChild = new Stop(); @@ -679,10 +610,8 @@ public VoiceResponse Stop() return this; } - /// - /// Append a element as a child of this element - /// - /// A Stop instance. + /// Append a <Stop/> element as a child of this element + /// A Stop instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Stop(Stop stop) { @@ -690,11 +619,9 @@ public VoiceResponse Stop(Stop stop) return this; } - /// - /// Create a new element and append it as a child of this element. - /// - /// Action URL - /// Action URL method + /// Create a new <Refer/> element and append it as a child of this element. + /// Action URL + /// Action URL method public VoiceResponse Refer(Uri action = null, Twilio.Http.HttpMethod method = null) { var newChild = new Refer(action, method); @@ -702,10 +629,8 @@ public VoiceResponse Refer(Uri action = null, Twilio.Http.HttpMethod method = nu return this; } - /// - /// Append a element as a child of this element - /// - /// A Refer instance. + /// Append a <Refer/> element as a child of this element + /// A Refer instance. [System.Obsolete("This method is deprecated, use .Append() instead.")] public VoiceResponse Refer(Refer refer) { @@ -713,20 +638,16 @@ public VoiceResponse Refer(Refer refer) return this; } - /// - /// Append a child TwiML element to this element returning this element to allow chaining. - /// - /// Child TwiML element to add + /// Append a child TwiML element to this element returning this element to allow chaining. + /// Child TwiML element to add public new VoiceResponse Append(TwiML childElem) { return (VoiceResponse) base.Append(childElem); } - /// - /// Add freeform key-value attributes to the generated xml - /// - /// Option key - /// Option value + /// Add freeform key-value attributes to the generated xml + /// Option key + /// Option value public new VoiceResponse SetOption(string key, object value) { return (VoiceResponse) base.SetOption(key, value); diff --git a/test/Twilio.Test/TwiML/ApplicationSidTest.cs b/test/Twilio.Test/TwiML/ApplicationSidTest.cs index 19b12301a..705d241d4 100644 --- a/test/Twilio.Test/TwiML/ApplicationSidTest.cs +++ b/test/Twilio.Test/TwiML/ApplicationSidTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/ApplicationTest.cs b/test/Twilio.Test/TwiML/ApplicationTest.cs index 30779abf0..6e2f9a49e 100644 --- a/test/Twilio.Test/TwiML/ApplicationTest.cs +++ b/test/Twilio.Test/TwiML/ApplicationTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; @@ -33,7 +33,7 @@ public void TestElementWithParams() "application_sid", new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Application.EventEnum.Initiated), + new[] {Application.EventEnum.Initiated}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, "customer_id", diff --git a/test/Twilio.Test/TwiML/AutopilotTest.cs b/test/Twilio.Test/TwiML/AutopilotTest.cs index c4f6ffe97..07f2ad6ef 100644 --- a/test/Twilio.Test/TwiML/AutopilotTest.cs +++ b/test/Twilio.Test/TwiML/AutopilotTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/BodyTest.cs b/test/Twilio.Test/TwiML/BodyTest.cs index 9bd1cd250..de12c63e7 100644 --- a/test/Twilio.Test/TwiML/BodyTest.cs +++ b/test/Twilio.Test/TwiML/BodyTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/ClientTest.cs b/test/Twilio.Test/TwiML/ClientTest.cs index 02245b57b..672340e41 100644 --- a/test/Twilio.Test/TwiML/ClientTest.cs +++ b/test/Twilio.Test/TwiML/ClientTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; @@ -33,7 +33,7 @@ public void TestElementWithParams() "identity", new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Client.EventEnum.Initiated), + new[] {Client.EventEnum.Initiated}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get ); diff --git a/test/Twilio.Test/TwiML/ConferenceTest.cs b/test/Twilio.Test/TwiML/ConferenceTest.cs index 13a77daf8..ea9a12eb2 100644 --- a/test/Twilio.Test/TwiML/ConferenceTest.cs +++ b/test/Twilio.Test/TwiML/ConferenceTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; @@ -42,12 +42,12 @@ public void TestElementWithParams() Conference.RegionEnum.Us1, "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", Conference.TrimEnum.TrimSilence, - Promoter.ListOfOne(Conference.EventEnum.Start), + new[] {Conference.EventEnum.Start}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Conference.RecordingEventEnum.InProgress), + new[] {Conference.RecordingEventEnum.InProgress}, new Uri("https://example.com"), Conference.JitterBufferSizeEnum.Large, "participant_label" diff --git a/test/Twilio.Test/TwiML/ConfigTest.cs b/test/Twilio.Test/TwiML/ConfigTest.cs index d73797b6c..a1c32dd2a 100644 --- a/test/Twilio.Test/TwiML/ConfigTest.cs +++ b/test/Twilio.Test/TwiML/ConfigTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/ConnectTest.cs b/test/Twilio.Test/TwiML/ConnectTest.cs index a6bc7d6e9..2483efff3 100644 --- a/test/Twilio.Test/TwiML/ConnectTest.cs +++ b/test/Twilio.Test/TwiML/ConnectTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; @@ -88,10 +88,10 @@ public void TestElementWithChildren() Conversation.TrimEnum.TrimSilence, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Conversation.RecordingEventEnum.InProgress), + new[] {Conversation.RecordingEventEnum.InProgress}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Conversation.EventEnum.CallInitiated) + new[] {Conversation.EventEnum.CallInitiated} ); Assert.AreEqual( diff --git a/test/Twilio.Test/TwiML/ConversationTest.cs b/test/Twilio.Test/TwiML/ConversationTest.cs index 2ff34b90b..255e18370 100644 --- a/test/Twilio.Test/TwiML/ConversationTest.cs +++ b/test/Twilio.Test/TwiML/ConversationTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; @@ -40,10 +40,10 @@ public void TestElementWithParams() Conversation.TrimEnum.TrimSilence, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Conversation.RecordingEventEnum.InProgress), + new[] {Conversation.RecordingEventEnum.InProgress}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Conversation.EventEnum.CallInitiated) + new[] {Conversation.EventEnum.CallInitiated} ); Assert.AreEqual( "" + Environment.NewLine + diff --git a/test/Twilio.Test/TwiML/DialTest.cs b/test/Twilio.Test/TwiML/DialTest.cs index fae9f591c..1763ccbe4 100644 --- a/test/Twilio.Test/TwiML/DialTest.cs +++ b/test/Twilio.Test/TwiML/DialTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; @@ -41,7 +41,7 @@ public void TestElementWithParams() Dial.TrimEnum.TrimSilence, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Dial.RecordingEventEnum.InProgress), + new[] {Dial.RecordingEventEnum.InProgress}, true, Dial.RingToneEnum.At, Dial.RecordingTrackEnum.Both, @@ -97,7 +97,7 @@ public void TestElementWithChildren() "identity", new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Client.EventEnum.Initiated), + new[] {Client.EventEnum.Initiated}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get ); @@ -115,12 +115,12 @@ public void TestElementWithChildren() Conference.RegionEnum.Us1, "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", Conference.TrimEnum.TrimSilence, - Promoter.ListOfOne(Conference.EventEnum.Start), + new[] {Conference.EventEnum.Start}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Conference.RecordingEventEnum.InProgress), + new[] {Conference.RecordingEventEnum.InProgress}, new Uri("https://example.com"), Conference.JitterBufferSizeEnum.Large, "participant_label" @@ -131,7 +131,7 @@ public void TestElementWithChildren() "send_digits", new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Number.EventEnum.Initiated), + new[] {Number.EventEnum.Initiated}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, "BYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", @@ -160,7 +160,7 @@ public void TestElementWithChildren() "password", new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Sip.EventEnum.Initiated), + new[] {Sip.EventEnum.Initiated}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, "machine_detection", @@ -176,7 +176,7 @@ public void TestElementWithChildren() "application_sid", new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Application.EventEnum.Initiated), + new[] {Application.EventEnum.Initiated}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, "customer_id", diff --git a/test/Twilio.Test/TwiML/EchoTest.cs b/test/Twilio.Test/TwiML/EchoTest.cs index 0a59e60e4..f16606ab4 100644 --- a/test/Twilio.Test/TwiML/EchoTest.cs +++ b/test/Twilio.Test/TwiML/EchoTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/EnqueueTest.cs b/test/Twilio.Test/TwiML/EnqueueTest.cs index 7b3ed5b78..08d30c8fe 100644 --- a/test/Twilio.Test/TwiML/EnqueueTest.cs +++ b/test/Twilio.Test/TwiML/EnqueueTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/FaxResponseTest.cs b/test/Twilio.Test/TwiML/FaxResponseTest.cs index 61df4aa5f..1a903085f 100644 --- a/test/Twilio.Test/TwiML/FaxResponseTest.cs +++ b/test/Twilio.Test/TwiML/FaxResponseTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/GatherTest.cs b/test/Twilio.Test/TwiML/GatherTest.cs index 1a7e229fb..af04f5c41 100644 --- a/test/Twilio.Test/TwiML/GatherTest.cs +++ b/test/Twilio.Test/TwiML/GatherTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; @@ -30,7 +30,7 @@ public void TestEmptyElement() public void TestElementWithParams() { var elem = new Gather( - Promoter.ListOfOne(Gather.InputEnum.Dtmf), + new[] {Gather.InputEnum.Dtmf}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, 1, diff --git a/test/Twilio.Test/TwiML/HangupTest.cs b/test/Twilio.Test/TwiML/HangupTest.cs index 20aa9bead..3fd80a6a2 100644 --- a/test/Twilio.Test/TwiML/HangupTest.cs +++ b/test/Twilio.Test/TwiML/HangupTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/IdentityTest.cs b/test/Twilio.Test/TwiML/IdentityTest.cs index 9051dcaab..5d95925cc 100644 --- a/test/Twilio.Test/TwiML/IdentityTest.cs +++ b/test/Twilio.Test/TwiML/IdentityTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/LeaveTest.cs b/test/Twilio.Test/TwiML/LeaveTest.cs index 5cb620488..cc89d4d38 100644 --- a/test/Twilio.Test/TwiML/LeaveTest.cs +++ b/test/Twilio.Test/TwiML/LeaveTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/MediaTest.cs b/test/Twilio.Test/TwiML/MediaTest.cs index 29a979b6e..c0dd7e0a6 100644 --- a/test/Twilio.Test/TwiML/MediaTest.cs +++ b/test/Twilio.Test/TwiML/MediaTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/MessageTest.cs b/test/Twilio.Test/TwiML/MessageTest.cs index 3a299fe8c..a5bb2c3c5 100644 --- a/test/Twilio.Test/TwiML/MessageTest.cs +++ b/test/Twilio.Test/TwiML/MessageTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/MessagingResponseTest.cs b/test/Twilio.Test/TwiML/MessagingResponseTest.cs index 49fd79c47..d26f4e2f7 100644 --- a/test/Twilio.Test/TwiML/MessagingResponseTest.cs +++ b/test/Twilio.Test/TwiML/MessagingResponseTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/NumberTest.cs b/test/Twilio.Test/TwiML/NumberTest.cs index dc5fcbced..c94423db1 100644 --- a/test/Twilio.Test/TwiML/NumberTest.cs +++ b/test/Twilio.Test/TwiML/NumberTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; @@ -34,7 +34,7 @@ public void TestElementWithParams() "send_digits", new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Number.EventEnum.Initiated), + new[] {Number.EventEnum.Initiated}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, "BYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", diff --git a/test/Twilio.Test/TwiML/ParameterTest.cs b/test/Twilio.Test/TwiML/ParameterTest.cs index a5c337068..5bd49672f 100644 --- a/test/Twilio.Test/TwiML/ParameterTest.cs +++ b/test/Twilio.Test/TwiML/ParameterTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/PauseTest.cs b/test/Twilio.Test/TwiML/PauseTest.cs index 1b9505e3a..0fd9aea0c 100644 --- a/test/Twilio.Test/TwiML/PauseTest.cs +++ b/test/Twilio.Test/TwiML/PauseTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/PayTest.cs b/test/Twilio.Test/TwiML/PayTest.cs index 842114efc..df6946994 100644 --- a/test/Twilio.Test/TwiML/PayTest.cs +++ b/test/Twilio.Test/TwiML/PayTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; @@ -46,7 +46,7 @@ public void TestElementWithParams() "charge_amount", "currency", "description", - Promoter.ListOfOne(Pay.ValidCardTypesEnum.Visa), + new[] {Pay.ValidCardTypesEnum.Visa}, Pay.LanguageEnum.DeDe ); Assert.AreEqual( @@ -95,9 +95,9 @@ public void TestElementWithChildren() elem.Prompt( Prompt.ForEnum.PaymentCardNumber, - Promoter.ListOfOne(Prompt.ErrorTypeEnum.Timeout), - Promoter.ListOfOne(Prompt.CardTypeEnum.Visa), - Promoter.ListOfOne(1), + new[] {Prompt.ErrorTypeEnum.Timeout}, + new[] {Prompt.CardTypeEnum.Visa}, + new[] {1}, true ); diff --git a/test/Twilio.Test/TwiML/PlayTest.cs b/test/Twilio.Test/TwiML/PlayTest.cs index e89ac63f0..7fa74fb4c 100644 --- a/test/Twilio.Test/TwiML/PlayTest.cs +++ b/test/Twilio.Test/TwiML/PlayTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/PromptTest.cs b/test/Twilio.Test/TwiML/PromptTest.cs index 7365cdbb0..409cfab17 100644 --- a/test/Twilio.Test/TwiML/PromptTest.cs +++ b/test/Twilio.Test/TwiML/PromptTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; @@ -31,9 +31,9 @@ public void TestElementWithParams() { var elem = new Prompt( Prompt.ForEnum.PaymentCardNumber, - Promoter.ListOfOne(Prompt.ErrorTypeEnum.Timeout), - Promoter.ListOfOne(Prompt.CardTypeEnum.Visa), - Promoter.ListOfOne(1), + new[] {Prompt.ErrorTypeEnum.Timeout}, + new[] {Prompt.CardTypeEnum.Visa}, + new[] {1}, true ); Assert.AreEqual( diff --git a/test/Twilio.Test/TwiML/QueueTest.cs b/test/Twilio.Test/TwiML/QueueTest.cs index b7714b0e9..693abf3e7 100644 --- a/test/Twilio.Test/TwiML/QueueTest.cs +++ b/test/Twilio.Test/TwiML/QueueTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/ReceiveTest.cs b/test/Twilio.Test/TwiML/ReceiveTest.cs index 809b430e4..fa3174af6 100644 --- a/test/Twilio.Test/TwiML/ReceiveTest.cs +++ b/test/Twilio.Test/TwiML/ReceiveTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/RecordTest.cs b/test/Twilio.Test/TwiML/RecordTest.cs index 27d64570c..187e561d2 100644 --- a/test/Twilio.Test/TwiML/RecordTest.cs +++ b/test/Twilio.Test/TwiML/RecordTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; @@ -39,7 +39,7 @@ public void TestElementWithParams() Record.TrimEnum.TrimSilence, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Record.RecordingEventEnum.InProgress), + new[] {Record.RecordingEventEnum.InProgress}, true, new Uri("https://example.com") ); diff --git a/test/Twilio.Test/TwiML/RedirectTest.cs b/test/Twilio.Test/TwiML/RedirectTest.cs index 41ce20a08..d42ab2b5c 100644 --- a/test/Twilio.Test/TwiML/RedirectTest.cs +++ b/test/Twilio.Test/TwiML/RedirectTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/ReferSipTest.cs b/test/Twilio.Test/TwiML/ReferSipTest.cs index 800dc67a6..771c5ae53 100644 --- a/test/Twilio.Test/TwiML/ReferSipTest.cs +++ b/test/Twilio.Test/TwiML/ReferSipTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/ReferTest.cs b/test/Twilio.Test/TwiML/ReferTest.cs index dfe6b9746..01d278aa8 100644 --- a/test/Twilio.Test/TwiML/ReferTest.cs +++ b/test/Twilio.Test/TwiML/ReferTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/RejectTest.cs b/test/Twilio.Test/TwiML/RejectTest.cs index 91ac2f0ee..72e5e61e9 100644 --- a/test/Twilio.Test/TwiML/RejectTest.cs +++ b/test/Twilio.Test/TwiML/RejectTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/RoomTest.cs b/test/Twilio.Test/TwiML/RoomTest.cs index cb72a684b..a9de4a115 100644 --- a/test/Twilio.Test/TwiML/RoomTest.cs +++ b/test/Twilio.Test/TwiML/RoomTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SayTest.cs b/test/Twilio.Test/TwiML/SayTest.cs index 91f67bd41..36d551b6f 100644 --- a/test/Twilio.Test/TwiML/SayTest.cs +++ b/test/Twilio.Test/TwiML/SayTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SimTest.cs b/test/Twilio.Test/TwiML/SimTest.cs index 82ff3fa42..1452b476a 100644 --- a/test/Twilio.Test/TwiML/SimTest.cs +++ b/test/Twilio.Test/TwiML/SimTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SipTest.cs b/test/Twilio.Test/TwiML/SipTest.cs index cb81191d6..af274eeea 100644 --- a/test/Twilio.Test/TwiML/SipTest.cs +++ b/test/Twilio.Test/TwiML/SipTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; @@ -35,7 +35,7 @@ public void TestElementWithParams() "password", new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Sip.EventEnum.Initiated), + new[] {Sip.EventEnum.Initiated}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, "machine_detection", diff --git a/test/Twilio.Test/TwiML/SiprecTest.cs b/test/Twilio.Test/TwiML/SiprecTest.cs index 36a3be33d..8b4705f4b 100644 --- a/test/Twilio.Test/TwiML/SiprecTest.cs +++ b/test/Twilio.Test/TwiML/SiprecTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SmsTest.cs b/test/Twilio.Test/TwiML/SmsTest.cs index 7737faee8..21c75305a 100644 --- a/test/Twilio.Test/TwiML/SmsTest.cs +++ b/test/Twilio.Test/TwiML/SmsTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SsmlBreakTest.cs b/test/Twilio.Test/TwiML/SsmlBreakTest.cs index 47de34aba..10c60ce7f 100644 --- a/test/Twilio.Test/TwiML/SsmlBreakTest.cs +++ b/test/Twilio.Test/TwiML/SsmlBreakTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SsmlEmphasisTest.cs b/test/Twilio.Test/TwiML/SsmlEmphasisTest.cs index 68603357e..09efbee2c 100644 --- a/test/Twilio.Test/TwiML/SsmlEmphasisTest.cs +++ b/test/Twilio.Test/TwiML/SsmlEmphasisTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SsmlLangTest.cs b/test/Twilio.Test/TwiML/SsmlLangTest.cs index bf25e8cff..a06823515 100644 --- a/test/Twilio.Test/TwiML/SsmlLangTest.cs +++ b/test/Twilio.Test/TwiML/SsmlLangTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SsmlPTest.cs b/test/Twilio.Test/TwiML/SsmlPTest.cs index 9534890a8..b5fd76b28 100644 --- a/test/Twilio.Test/TwiML/SsmlPTest.cs +++ b/test/Twilio.Test/TwiML/SsmlPTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SsmlPhonemeTest.cs b/test/Twilio.Test/TwiML/SsmlPhonemeTest.cs index 2469c3299..aa63b43ee 100644 --- a/test/Twilio.Test/TwiML/SsmlPhonemeTest.cs +++ b/test/Twilio.Test/TwiML/SsmlPhonemeTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SsmlProsodyTest.cs b/test/Twilio.Test/TwiML/SsmlProsodyTest.cs index 1693cd6d8..ecb248ebb 100644 --- a/test/Twilio.Test/TwiML/SsmlProsodyTest.cs +++ b/test/Twilio.Test/TwiML/SsmlProsodyTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SsmlSTest.cs b/test/Twilio.Test/TwiML/SsmlSTest.cs index 75a385799..302824f0a 100644 --- a/test/Twilio.Test/TwiML/SsmlSTest.cs +++ b/test/Twilio.Test/TwiML/SsmlSTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SsmlSayAsTest.cs b/test/Twilio.Test/TwiML/SsmlSayAsTest.cs index 53a5e78eb..48dcc4336 100644 --- a/test/Twilio.Test/TwiML/SsmlSayAsTest.cs +++ b/test/Twilio.Test/TwiML/SsmlSayAsTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SsmlSubTest.cs b/test/Twilio.Test/TwiML/SsmlSubTest.cs index 42a04f44d..2dfa5f4a9 100644 --- a/test/Twilio.Test/TwiML/SsmlSubTest.cs +++ b/test/Twilio.Test/TwiML/SsmlSubTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/SsmlWTest.cs b/test/Twilio.Test/TwiML/SsmlWTest.cs index 52bee0a20..2be08f19c 100644 --- a/test/Twilio.Test/TwiML/SsmlWTest.cs +++ b/test/Twilio.Test/TwiML/SsmlWTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/StartTest.cs b/test/Twilio.Test/TwiML/StartTest.cs index 0e6636434..f638119de 100644 --- a/test/Twilio.Test/TwiML/StartTest.cs +++ b/test/Twilio.Test/TwiML/StartTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/StopTest.cs b/test/Twilio.Test/TwiML/StopTest.cs index 7567c8f91..23c99ada6 100644 --- a/test/Twilio.Test/TwiML/StopTest.cs +++ b/test/Twilio.Test/TwiML/StopTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/StreamTest.cs b/test/Twilio.Test/TwiML/StreamTest.cs index a77bdf268..93f63f19b 100644 --- a/test/Twilio.Test/TwiML/StreamTest.cs +++ b/test/Twilio.Test/TwiML/StreamTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/TaskTest.cs b/test/Twilio.Test/TwiML/TaskTest.cs index f220a3a97..44e9d7e08 100644 --- a/test/Twilio.Test/TwiML/TaskTest.cs +++ b/test/Twilio.Test/TwiML/TaskTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/VirtualAgentTest.cs b/test/Twilio.Test/TwiML/VirtualAgentTest.cs index f96b53a9b..329171ab0 100644 --- a/test/Twilio.Test/TwiML/VirtualAgentTest.cs +++ b/test/Twilio.Test/TwiML/VirtualAgentTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; diff --git a/test/Twilio.Test/TwiML/VoiceResponseTest.cs b/test/Twilio.Test/TwiML/VoiceResponseTest.cs index 6779d8c47..1f8a81ae1 100644 --- a/test/Twilio.Test/TwiML/VoiceResponseTest.cs +++ b/test/Twilio.Test/TwiML/VoiceResponseTest.cs @@ -1,7 +1,7 @@ -/// This code was generated by -/// \ / _ _ _| _ _ -/// | (_)\/(_)(_|\/| |(/_ v1.0.0 -/// / / +// This code was generated by +// \ / _ _ _| _ _ +// | (_)\/(_)(_|\/| |(/_ v1.0.0 +// / / using NUnit.Framework; using System; @@ -78,7 +78,7 @@ public void TestElementWithChildren() Dial.TrimEnum.TrimSilence, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Dial.RecordingEventEnum.InProgress), + new[] {Dial.RecordingEventEnum.InProgress}, true, Dial.RingToneEnum.At, Dial.RecordingTrackEnum.Both, @@ -100,7 +100,7 @@ public void TestElementWithChildren() ); elem.Gather( - Promoter.ListOfOne(Gather.InputEnum.Dtmf), + new[] {Gather.InputEnum.Dtmf}, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, 1, @@ -146,7 +146,7 @@ public void TestElementWithChildren() Record.TrimEnum.TrimSilence, new Uri("https://example.com"), Twilio.Http.HttpMethod.Get, - Promoter.ListOfOne(Record.RecordingEventEnum.InProgress), + new[] {Record.RecordingEventEnum.InProgress}, true, new Uri("https://example.com") ); @@ -183,15 +183,15 @@ public void TestElementWithChildren() "charge_amount", "currency", "description", - Promoter.ListOfOne(Pay.ValidCardTypesEnum.Visa), + new[] {Pay.ValidCardTypesEnum.Visa}, Pay.LanguageEnum.DeDe ); elem.Prompt( Prompt.ForEnum.PaymentCardNumber, - Promoter.ListOfOne(Prompt.ErrorTypeEnum.Timeout), - Promoter.ListOfOne(Prompt.CardTypeEnum.Visa), - Promoter.ListOfOne(1), + new[] {Prompt.ErrorTypeEnum.Timeout}, + new[] {Prompt.CardTypeEnum.Visa}, + new[] {1}, true );