Skip to content

Commit 7f2ed4f

Browse files
DX-2700
1 parent 2463d34 commit 7f2ed4f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/main/java/com/bandwidth/voice/bxml/verbs/StopStream.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
package com.bandwidth.voice.bxml.verbs;
33

44
import lombok.Builder;
5-
5+
import javax.xml.bind.annotation.XmlAttribute;
66
import javax.xml.bind.annotation.XmlType;
77

8+
89
/**
910
* The StopStream verb is used to stop a stream previously started by a `<StartStream>` verb.
1011
*/
@@ -13,4 +14,9 @@
1314
public class StopStream implements Verb {
1415
public static final String TYPE_NAME = "StopStream";
1516

17+
/**
18+
* <i>(required)</i> A name to refer to this stream by. Used when sending [`<StopStream>`][1]. If not provided, a random name will be generated and sent in the [`Media Stream Started`][2] webook.
19+
*/
20+
@XmlAttribute
21+
private String name;
1622
}

src/test/java/com/bandwidth/BxmlTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ public void testStartStream() {
474474
@Test
475475
public void testStopStream() {
476476
StopStream stopStream = StopStream.builder()
477-
.name("test")
478-
.build();
477+
.name("test")
478+
.build();
479479

480480
String response = new Response()
481481
.add(stopStream)

0 commit comments

Comments
 (0)