diff --git a/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestStartStream.cs b/src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestStartStream.cs index b73f530..35114ca 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"; @@ -22,6 +22,8 @@ public void StartStreamTest() startStream.Mode = "unidirectional"; startStream.Tracks = "inbound"; startStream.Destination = "wss://test.url/"; + startStream.DestinationUsername = "destinationUsername"; + startStream.DestinationPassword = "destinationPassword"; startStream.StreamEventUrl = "https://test.url/"; startStream.StreamEventMethod = "POST"; startStream.Username = "username"; diff --git a/src/Bandwidth.Standard/Model/Bxml/Verbs/StartStream.cs b/src/Bandwidth.Standard/Model/Bxml/Verbs/StartStream.cs index 627f03d..55156eb 100644 --- a/src/Bandwidth.Standard/Model/Bxml/Verbs/StartStream.cs +++ b/src/Bandwidth.Standard/Model/Bxml/Verbs/StartStream.cs @@ -37,11 +37,23 @@ public StartStream() public string Tracks { get; set; } /// - /// A websocket URI to send the stream to. + /// A websocket URI to send the stream to. /// [XmlAttribute("destination")] public string Destination { get; set; } + /// + /// The username to send in the `Authorization` header of the initial websocket connection to the `destination` URL. + /// + [XmlAttribute("destinationUsername")] + public string DestinationUsername { get; set; } + + /// + /// The password to send in the `Authorization` header of the initial websocket connection to the `destination` URL. + /// + [XmlAttribute("destinationPassword")] + public string DestinationPassword { get; set; } + /// /// URL to send the associated Webhook events to during this stream's lifetime. ///