Skip to content
12 changes: 5 additions & 7 deletions Bandwidth.Standard/Voice/Bxml/Bridge.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
using System;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;

namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// he Bridge verb is used to bridge another party (target call) onto the current call.
/// </summary>
/// <seealso href="https://dev.bandwidth.com/voice/bxml/verbs/bridge.html" />
public class Bridge : IVerb
/// <summary>
/// The Bridge verb is used to bridge another party (target call) onto the current call.
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/bridge.html" /></para>
/// </summary>
public class Bridge : IVerb
{

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Bandwidth.Standard/Voice/Bxml/Conference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// The Conference verb is used to play an audio file in the call.
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/conference.html" /></para>
/// </summary>
/// <seealso href="https://dev.bandwidth.com/voice/bxml/verbs/conference.html" />
public class Conference : IXmlSerializable, IVerb
{
/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Bandwidth.Standard/Voice/Bxml/Forward.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System;
using System.ComponentModel;
using System.Xml.Serialization;

namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// The Forward verb is used to transfer the call to another number.
/// The Forward verb is used to transfer the call to another number.
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/forward.html" /></para>
/// </summary>
public class Forward : IVerb
{
Expand Down
11 changes: 5 additions & 6 deletions Bandwidth.Standard/Voice/Bxml/Gather.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;

namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// The Gather verb is used to collect digits for some period of time.
/// </summary>
/// <seealso href="http://ap.bandwidth.com/docs/xml/gather/" />
public class Gather : IVerb, IXmlSerializable
/// <summary>
/// The Gather verb is used to collect digits for some period of time.
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/gather.html" /></para>
/// </summary>
public class Gather : IVerb, IXmlSerializable
{
/// <summary>
/// Initialize the integer fields to Bandwidth's default value
Expand Down
14 changes: 7 additions & 7 deletions Bandwidth.Standard/Voice/Bxml/Hangup.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// The Hangup verb is used to hangup current call.
/// </summary>
/// <seealso href="http://ap.bandwidth.com/docs/xml/hangup/" />
public class Hangup : IVerb
{
}
/// <summary>
/// The Hangup verb is used to hangup current call.
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/hangup.html" /></para>
/// </summary>
public class Hangup : IVerb
{
}
}
34 changes: 17 additions & 17 deletions Bandwidth.Standard/Voice/Bxml/Pause.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
using System.ComponentModel;
using System.Xml.Serialization;

namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// Pause the execution of an ongoing BXML document
/// </summary>
/// <seealso href="http://ap.bandwidth.com/docs/xml/pause/" />
public class Pause : IVerb
{

/// <summary>
/// Initialize the double fields to Bandwidth's default value
/// Pause the execution of an ongoing BXML document
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/pause.html" /></para>
/// </summary>
public Pause() {
Duration = 1;
public class Pause : IVerb
{
/// <summary>
/// How many seconds Bandwidth will wait silently before continuing on.
/// </summary>
[XmlAttribute("duration")]
public double Duration { get; set; }

/// <summary>
/// Initialize the double fields to Bandwidth's default value
/// </summary>
public Pause()
{
Duration = 1;
}
}
/// <summary>
/// How many seconds Bandwidth will wait silently before continuing on.
/// </summary>
[XmlAttribute("duration")]
public double Duration { get; set; }
}
}
25 changes: 10 additions & 15 deletions Bandwidth.Standard/Voice/Bxml/PauseRecording.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
using System.ComponentModel;
using System.Xml.Serialization;

namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// The PauseRecording verb is used to pause a recording that was previously started by a <StartRecording> verb.
/// Audio that occurs between a <PauseRecording> verb and a <ResumeRecording> verb will not be present in the recording.
/// The paused period will not be included in the duration of the recording and therefore will not contribute to the recording portion of the bill.
/// If there is not an ongoing recording at the time of this verb's execution, it has no effect.
/// </summary>
/// <seealso href="https://dev.bandwidth.com/voice/bxml/verbs/StopRecording.html" />
public class PauseRecording : IVerb
{


}
/// <summary>
/// The PauseRecording verb is used to pause a recording that was previously started by a <![CDATA[<StartRecording>]]> verb.
/// Audio that occurs between a <![CDATA[<PauseRecording>]]> verb and a <![CDATA[<ResumeRecording>]]> verb will not be present in the recording.
/// The paused period will not be included in the duration of the recording and therefore will not contribute to the recording portion of the bill.
/// If there is not an ongoing recording at the time of this verb's execution, it has no effect.
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/pauseRecording.html" /></para>
/// </summary>
public class PauseRecording : IVerb
{
}
}
2 changes: 1 addition & 1 deletion Bandwidth.Standard/Voice/Bxml/PlayAudio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// The PlayAudio verb is used to play an audio file in the call.
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/playAudio.html" /></para>
/// </summary>
/// <seealso href="http://ap.bandwidth.com/docs/xml/playaudio/" />
public class PlayAudio : IXmlSerializable, IVerb, IAudioProducer
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Bandwidth.Standard/Voice/Bxml/Recording.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// The Record verb allows a segment of audio to be recorded during a call. At the end of the recording, a Record Complete event is generated.
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/record.html" /></para>
/// </summary>
/// <seealso href="http://ap.bandwidth.com/docs/xml/recording/" />
public class Record : IVerb
{

Expand Down
3 changes: 1 addition & 2 deletions Bandwidth.Standard/Voice/Bxml/Redirect.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using System.ComponentModel;
using System.Xml.Serialization;

namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// The Redirect verb is used to redirect the current XML execution to another URL.
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/redirect.html" /></para>
/// </summary>
/// <seealso href="http://ap.bandwidth.com/docs/xml/redirect/" />
public class Redirect : IVerb
{
/// <summary>
Expand Down
25 changes: 10 additions & 15 deletions Bandwidth.Standard/Voice/Bxml/ResumeRecording.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
using System.ComponentModel;
using System.Xml.Serialization;

namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// The ResumeRecording verb is used to resume a recording that was previously paused by a <PauseRecording> verb.
/// Audio that occurs between a <PauseRecording> verb and a <ResumeRecording> verb will not be present in the recording.
/// The paused period will not be included in the duration of the recording and therefore will not contribute to the recording portion of the bill.
/// If there is not an ongoing recording at the time of this verb's execution, it has no effect.
/// </summary>
/// <seealso href="https://dev.bandwidth.com/voice/bxml/verbs/StopRecording.html" />
public class ResumeRecording : IVerb
{


}
/// <summary>
/// The ResumeRecording verb is used to resume a recording that was previously paused by a <![CDATA[<PauseRecording>]]> verb.
/// Audio that occurs between a <![CDATA[<PauseRecording>]]> verb and a <![CDATA[<ResumeRecording>]]> verb will not be present in the recording.
/// The paused period will not be included in the duration of the recording and therefore will not contribute to the recording portion of the bill.
/// If there is not an ongoing recording at the time of this verb's execution, it has no effect.
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/StopRecording.html"/></para>
/// </summary>
public class ResumeRecording : IVerb
{
}
}
34 changes: 17 additions & 17 deletions Bandwidth.Standard/Voice/Bxml/Ring.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
using System.ComponentModel;
using System.Xml.Serialization;

namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// The Ring verb is used to play ringing audio on a call.
/// </summary>
/// <seealso href="https://dev.bandwidth.com/voice/bxml/verbs/ring.html" />
public class Ring : IVerb
{

/// <summary>
/// Initialize the double fields to Bandwidth's default value
/// The Ring verb is used to play ringing audio on a call.
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/ring.html"/></para>
/// </summary>
public Ring() {
Duration = 5;
public class Ring : IVerb
{
/// <summary>
/// (optional) How many seconds to play ringing on the call. Default value is 5. Range: decimal values between 0.1 - 86400.
/// </summary>
[XmlAttribute("duration")]
public double Duration { get; set; }

/// <summary>
/// Initialize the double fields to Bandwidth's default value
/// </summary>
public Ring()
{
Duration = 5;
}
}
/// <summary>
/// (optional) How many seconds to play ringing on the call. Default value is 5. Range: decimal values between 0.1 - 86400.
/// </summary>
[XmlAttribute("duration")]
public double Duration { get; set; }
}
}
6 changes: 3 additions & 3 deletions Bandwidth.Standard/Voice/Bxml/SendDtmf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// Send digits on a live call
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/sendDtmf.html" /></para>
/// </summary>
/// <seealso href="http://ap.bandwidth.com/docs/xml/dtmf/" />
public class SendDtmf : IXmlSerializable, IVerb
{
/// <summary>
/// (optional) The length (in milliseconds) of each DTMF tone. Default value is 200. Range: decimal values between 50 - 5000.
/// </summary>
[XmlIgnore]
public Nullable<double> ToneDuration { get; set; }
public double? ToneDuration { get; set; }

/// <summary>
/// The setter does nothing! This is just a surrogate feild for nullable xml attribute serialization.
Expand All @@ -30,7 +30,7 @@ public string ToneDurationAsText {
/// (optional) The duration of silence (in milliseconds) following each DTMF tone. Default value is 400. Range: decimal values between 50 - 5000.
/// </summary>
[XmlIgnore]
public Nullable<double> ToneInterval { get; set; }
public double? ToneInterval { get; set; }

/// <summary>
/// The setter does nothing! This is just a surrogate feild for nullable xml attribute serialization.
Expand Down
4 changes: 2 additions & 2 deletions Bandwidth.Standard/Voice/Bxml/SpeakSentence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// The SpeakSentence verb is used to convert any text into speak for the caller.
/// The SpeakSentence verb is used to convert any text into speak for the caller.
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/speakSentence.html" /></para>
/// </summary>
/// <seealso href="http://ap.bandwidth.com/docs/xml/speaksentence/" />
public class SpeakSentence : IXmlSerializable, IVerb, IAudioProducer
{
/// <summary>
Expand Down
78 changes: 37 additions & 41 deletions Bandwidth.Standard/Voice/Bxml/StartGather.cs
Original file line number Diff line number Diff line change
@@ -1,48 +1,44 @@

using System;
using System.Xml.Serialization;

namespace Bandwidth.Standard.Voice.Bxml
{
/// <summary>
/// The StartGather verb is used to Start a Gather on the current call.
/// </summary>
/// <seealso href="https://dev.bandwidth.com/voice/bxml/verbs/startGather.html" />
public class StartGather : IVerb
{

/// <summary>
/// URL to send the DTMF event to. May be a relative URL.
/// </summary>
[XmlAttribute("dtmfUrl")]
public string DtmfUrl { get; set; }

/// <summary>
/// (optional) The HTTP method to use for the request to dtmfUrl. GET or POST. Default value is POST.
/// </summary>
[XmlAttribute("dtmfMethod")]
public string DtmfMethod { get; set; }


/// <summary>
/// Username for basic auth for the callback
/// </summary>
[XmlAttribute("username")]
public string Username { get; set; }

/// <summary>
/// Password for basic auth for the callback
/// The StartGather verb is used to Start a Gather on the current call.
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/verbs/startGather.html"/></para>
/// </summary>
[XmlAttribute("password")]
public string Password { get; set; }

/// <summary>
/// (optional) A custom string that will be sent with this and all future callbacks unless overwritten by a future tag attribute or cleared.
/// May be cleared by setting tag = ""
/// Max length 256 characters.
/// </summary>
[XmlAttribute("tag")]
public string Tag { get; set; }

}
public class StartGather : IVerb
{
/// <summary>
/// URL to send the DTMF event to. May be a relative URL.
/// </summary>
[XmlAttribute("dtmfUrl")]
public string DtmfUrl { get; set; }

/// <summary>
/// (optional) The HTTP method to use for the request to dtmfUrl. GET or POST. Default value is POST.
/// </summary>
[XmlAttribute("dtmfMethod")]
public string DtmfMethod { get; set; }


/// <summary>
/// Username for basic auth for the callback
/// </summary>
[XmlAttribute("username")]
public string Username { get; set; }

/// <summary>
/// Password for basic auth for the callback
/// </summary>
[XmlAttribute("password")]
public string Password { get; set; }

/// <summary>
/// (optional) A custom string that will be sent with this and all future callbacks unless overwritten by a future tag attribute or cleared.
/// May be cleared by setting tag = ""
/// Max length 256 characters.
/// </summary>
[XmlAttribute("tag")]
public string Tag { get; set; }
}
}
Loading