Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ public class TestStartStream
[Fact]
public void StartStreamTest()
{
var expected = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Response> <StartStream name=\"test\" tracks=\"inbound\" destination=\"wss://test.url/\" streamEventUrl=\"https://test.url/\" streamEventMethod=\"POST\" username=\"username\" password=\"password\"> <StreamParam name=\"testName\" value=\"testValue\" /> </StartStream></Response>";
var expected = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Response> <StartStream name=\"test\" mode=\"unidirectional\" tracks=\"inbound\" destination=\"wss://test.url/\" streamEventUrl=\"https://test.url/\" streamEventMethod=\"POST\" username=\"username\" password=\"password\"> <StreamParam name=\"testName\" value=\"testValue\" /> </StartStream></Response>";

var streamParam = new StreamParam();
streamParam.Name = "testName";
streamParam.Value = "testValue";

var startStream = new StartStream();
startStream.Name = "test";
startStream.Mode = "unidirectional";
startStream.Tracks = "inbound";
startStream.Destination = "wss://test.url/";
startStream.StreamEventUrl = "https://test.url/";
Expand Down
6 changes: 6 additions & 0 deletions src/Bandwidth.Standard/Model/Bxml/Verbs/StartStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ public StartStream()
[XmlAttribute("name")]
public string Name { get; set; }

/// <summary>
/// The mode to use for the stream. unidirectional or bidirectional. Default is unidirectional.
/// </summary>
[XmlAttribute("mode")]
public string Mode { get; set; }

/// <summary>
/// The part of the call to send a stream from.
/// </summary>
Expand Down
Loading