-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathStopStream.java
More file actions
49 lines (41 loc) · 1.44 KB
/
StopStream.java
File metadata and controls
49 lines (41 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* The {@code <StopStream>} verb is used to stop a stream that was started with a previous {@code <StartStream>} verb.
*/
package com.bandwidth.sdk.model.bxml;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = StopStream.TYPE_NAME)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Getter
@EqualsAndHashCode
/**
*
* @param name (str, optional): The name of the stream to stop.
* This is either the user selected name when sending the <StartStream> verb, or the system generated name returned in the Media Stream Started webhook if <StartStream> was sent with no name attribute.
* @param wait (bool, optional): If true, the BXML interpreter will wait for the stream to stop before processing the next verb.
*/
public class StopStream implements Verb {
public static final String TYPE_NAME = "StopStream";
@XmlAttribute
protected String name;
@XmlAttribute
protected Boolean wait;
// Original constructor for backwards compatibility
public StopStream(String name) {
this.name = name;
}
@Override
public String getVerbName() {
return TYPE_NAME;
}
}