-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from Bandwidth/DX-2863
DX-2863 add `StreamParams` verb
- Loading branch information
Showing
3 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
using System.Xml; | ||
using System.Xml.Schema; | ||
using System.Xml.Serialization; | ||
|
||
namespace Bandwidth.Standard.Voice.Bxml | ||
{ | ||
/// <summary> | ||
/// The StreamParam verb defines optional user specified parameters that will be sent to the destination URL when the stream is first started. | ||
/// <para><seealso href="https://dev.bandwidth.com/voice/bxml/startStream" /></para> | ||
/// </summary> | ||
public class StreamParam : IXmlSerializable, IVerb | ||
{ | ||
/// <summary> | ||
/// The name of this parameter, up to 256 characters | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// The value of this parameter, up to 2048 characters | ||
/// </summary> | ||
public string Value { get; set; } | ||
|
||
XmlSchema IXmlSerializable.GetSchema() | ||
{ | ||
return null; | ||
} | ||
|
||
void IXmlSerializable.ReadXml(XmlReader reader) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
void IXmlSerializable.WriteXml(XmlWriter writer) | ||
{ | ||
writer.WriteAttributeString("name", Name); | ||
writer.WriteAttributeString("value", Value); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters