File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Bandwidth.Standard.Test/Unit/Model/Bxml
Bandwidth.Standard/Model/Bxml/Verbs Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,15 @@ public class TestStartStream
11
11
[ Fact ]
12
12
public void StartStreamTest ( )
13
13
{
14
- 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>" ;
14
+ 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>" ;
15
15
16
16
var streamParam = new StreamParam ( ) ;
17
17
streamParam . Name = "testName" ;
18
18
streamParam . Value = "testValue" ;
19
19
20
20
var startStream = new StartStream ( ) ;
21
21
startStream . Name = "test" ;
22
+ startStream . Mode = "unidirectional" ;
22
23
startStream . Tracks = "inbound" ;
23
24
startStream . Destination = "wss://test.url/" ;
24
25
startStream . StreamEventUrl = "https://test.url/" ;
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ public StartStream()
24
24
[ XmlAttribute ( "name" ) ]
25
25
public string Name { get ; set ; }
26
26
27
+ /// <summary>
28
+ /// The mode to use for the stream. unidirectional or bidirectional. Default is unidirectional.
29
+ /// </summary>
30
+ [ XmlAttribute ( "mode" ) ]
31
+ public string Mode { get ; set ; }
32
+
27
33
/// <summary>
28
34
/// The part of the call to send a stream from.
29
35
/// </summary>
You can’t perform that action at this time.
0 commit comments