Skip to content

Commit 5bf3421

Browse files
committed
fix recording verbs
1 parent d148f79 commit 5bf3421

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

src/main/java/com/bandwidth/sdk/model/bxml/Record.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* @param fileFormat (str, optional): The audio format that the recording will be saved as: mp3 or wav. Default value is wav. Defaults to None.
5252
*
5353
*/
54-
public class Record implements TranscriptionProducer {
54+
public class Record implements Verb {
5555

5656
public static final String TYPE_NAME = "Record";
5757

@@ -93,16 +93,25 @@ public class Record implements TranscriptionProducer {
9393

9494
@XmlAttribute
9595
protected Boolean transcribe;
96+
public Boolean getTranscribe() {
97+
return transcribe;
98+
}
9699

97100
@XmlAttribute
98101
@Default
99102
protected Double silenceTimeout = DEFAULT_RECORD_SILENCE_TIMEOUT;
100103

101104
@XmlAttribute
102105
protected String transcriptionAvailableUrl;
106+
String getTranscriptionAvailableUrl() {
107+
return transcriptionAvailableUrl;
108+
}
103109

104110
@XmlAttribute
105111
protected String transcriptionAvailableMethod;
112+
String getTranscriptionAvailableMethod() {
113+
return transcriptionAvailableMethod;
114+
}
106115

107116
@XmlAttribute
108117
protected String username;

src/main/java/com/bandwidth/sdk/model/bxml/StartRecording.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* @param multiChannel (str, optional): A boolean value indicating whether or not the recording file should separate each side of the call into its own audio channel. Default value is false.
4040
*
4141
*/
42-
public class StartRecording implements TranscriptionProducer {
42+
public class StartRecording implements Verb {
4343

4444
public static final String TYPE_NAME = "StartRecording";
4545

@@ -52,12 +52,21 @@ public class StartRecording implements TranscriptionProducer {
5252

5353
@XmlAttribute
5454
protected Boolean transcribe;
55+
public Boolean getTranscribe() {
56+
return transcribe;
57+
}
5558

5659
@XmlAttribute
5760
protected String transcriptionAvailableUrl;
61+
String getTranscriptionAvailableUrl() {
62+
return transcriptionAvailableUrl;
63+
}
5864

5965
@XmlAttribute
6066
protected String transcriptionAvailableMethod;
67+
String getTranscriptionAvailableMethod() {
68+
return transcriptionAvailableMethod;
69+
}
6170

6271
@XmlAttribute
6372
protected String username;

src/main/java/com/bandwidth/sdk/model/bxml/TranscriptionProducer.java

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)