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 @@ -10,10 +10,11 @@ public class TestStopStream
[Fact]
public void StopStreamTest()
{
var expected = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Response> <StopStream name=\"test\" /></Response>";
var expected = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Response> <StopStream name=\"test\" wait=\"true\" /></Response>";

var stopStream = new StopStream();
stopStream.Name = "test";
stopStream.Wait = true;

var response = new Response(stopStream);
var actual = response.ToBXML();
Expand Down
6 changes: 6 additions & 0 deletions src/Bandwidth.Standard/Model/Bxml/Verbs/StopStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@ public class StopStream : IVerb
/// </summary>
[XmlAttribute("name")]
public string Name { get; set; }

/// <summary>
/// If true, the BXML interpreter will wait for the stream to stop before processing the next verb.
/// </summary>
[XmlAttribute("wait")]
public bool Wait { get; set; }
}
}
Loading