diff --git a/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestStartStream.cs b/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestStartStream.cs index 4252da01..b73f5300 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestStartStream.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestStartStream.cs @@ -11,7 +11,7 @@ public class TestStartStream [Fact] public void StartStreamTest() { - var expected = " "; + var expected = " "; var streamParam = new StreamParam(); streamParam.Name = "testName"; @@ -19,6 +19,7 @@ public void StartStreamTest() var startStream = new StartStream(); startStream.Name = "test"; + startStream.Mode = "unidirectional"; startStream.Tracks = "inbound"; startStream.Destination = "wss://test.url/"; startStream.StreamEventUrl = "https://test.url/"; diff --git a/src/Bandwidth.Standard/Model/Bxml/Verbs/StartStream.cs b/src/Bandwidth.Standard/Model/Bxml/Verbs/StartStream.cs index 0f29a008..627f03d0 100644 --- a/src/Bandwidth.Standard/Model/Bxml/Verbs/StartStream.cs +++ b/src/Bandwidth.Standard/Model/Bxml/Verbs/StartStream.cs @@ -24,6 +24,12 @@ public StartStream() [XmlAttribute("name")] public string Name { get; set; } + /// + /// The mode to use for the stream. unidirectional or bidirectional. Default is unidirectional. + /// + [XmlAttribute("mode")] + public string Mode { get; set; } + /// /// The part of the call to send a stream from. ///