Skip to content

Commit a10a263

Browse files
authored
SWI-8574 Add wait to StopStream Verb (#160)
1 parent 662ce09 commit a10a263

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/Bandwidth.Standard.Test/Unit/Model/Bxml/TestStopStream.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ public class TestStopStream
1010
[Fact]
1111
public void StopStreamTest()
1212
{
13-
var expected = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Response> <StopStream name=\"test\" /></Response>";
13+
var expected = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Response> <StopStream name=\"test\" wait=\"true\" /></Response>";
1414

1515
var stopStream = new StopStream();
1616
stopStream.Name = "test";
17+
stopStream.Wait = true;
1718

1819
var response = new Response(stopStream);
1920
var actual = response.ToBXML();

src/Bandwidth.Standard/Model/Bxml/Verbs/StopStream.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,11 @@ public class StopStream : IVerb
1414
/// </summary>
1515
[XmlAttribute("name")]
1616
public string Name { get; set; }
17+
18+
/// <summary>
19+
/// If true, the BXML interpreter will wait for the stream to stop before processing the next verb.
20+
/// </summary>
21+
[XmlAttribute("wait")]
22+
public bool Wait { get; set; }
1723
}
1824
}

0 commit comments

Comments
 (0)