File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
Bandwidth.Standard.Test/Unit/Model/Bxml
Bandwidth.Standard/Model/Bxml/Verbs Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ 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\" 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>" ;
14
+ var expected = "<?xml version=\" 1.0\" encoding=\" utf-8\" ?><Response> <StartStream name=\" test\" mode=\" unidirectional\" tracks=\" inbound\" destination=\" wss://test.url/\" destinationUsername= \" destinationUsername \" destinationPassword= \" destinationPassword \" 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" ;
@@ -22,6 +22,8 @@ public void StartStreamTest()
22
22
startStream . Mode = "unidirectional" ;
23
23
startStream . Tracks = "inbound" ;
24
24
startStream . Destination = "wss://test.url/" ;
25
+ startStream . DestinationUsername = "destinationUsername" ;
26
+ startStream . DestinationPassword = "destinationPassword" ;
25
27
startStream . StreamEventUrl = "https://test.url/" ;
26
28
startStream . StreamEventMethod = "POST" ;
27
29
startStream . Username = "username" ;
Original file line number Diff line number Diff line change @@ -37,11 +37,23 @@ public StartStream()
37
37
public string Tracks { get ; set ; }
38
38
39
39
/// <summary>
40
- /// A websocket URI to send the stream to.
40
+ /// A websocket URI to send the stream to.
41
41
/// </summary>
42
42
[ XmlAttribute ( "destination" ) ]
43
43
public string Destination { get ; set ; }
44
44
45
+ /// <summary>
46
+ /// The username to send in the `Authorization` header of the initial websocket connection to the `destination` URL.
47
+ /// </summary>
48
+ [ XmlAttribute ( "destinationUsername" ) ]
49
+ public string DestinationUsername { get ; set ; }
50
+
51
+ /// <summary>
52
+ /// The password to send in the `Authorization` header of the initial websocket connection to the `destination` URL.
53
+ /// </summary>
54
+ [ XmlAttribute ( "destinationPassword" ) ]
55
+ public string DestinationPassword { get ; set ; }
56
+
45
57
/// <summary>
46
58
/// URL to send the associated Webhook events to during this stream's lifetime.
47
59
/// </summary>
You can’t perform that action at this time.
0 commit comments