Skip to content

Commit 4242d0a

Browse files
committed
Add recordingStatusCallback and recordingStatusCallbackMethod to Conference TwiML
1 parent 84a719d commit 4242d0a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/main/java/com/twilio/twiml/Conference.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ public String apply(ConferenceEvent event) {
119119
@XmlAttribute
120120
private final String statusCallback;
121121

122+
@XmlAttribute
123+
private final String recordingStatusCallback;
124+
125+
@XmlAttribute
126+
private final Method recordingStatusCallbackMethod;
127+
122128
@XmlValue
123129
private final String name;
124130

@@ -144,6 +150,8 @@ private Conference(Builder b) {
144150
this.statusCallbackEvents = b.statusCallbackEvents;
145151
this.statusCallbackMethod = b.statusCallbackMethod;
146152
this.statusCallback = b.statusCallback;
153+
this.recordingStatusCallback = b.recordingStatusCallback;
154+
this.recordingStatusCallbackMethod = b.recordingStatusCallbackMethod;
147155

148156
if (this.statusCallbackEvents != null) {
149157
this.statusCallbackEvent = Joiner.on(" ").join(Lists.transform(this.statusCallbackEvents, ConferenceEvent.TO_STRING));
@@ -204,6 +212,14 @@ public List<ConferenceEvent> getStatusCallbackEvents() {
204212
return statusCallbackEvents;
205213
}
206214

215+
public String getRecordingStatusCallback() {
216+
return recordingStatusCallback;
217+
}
218+
219+
public Method getRecordingStatusCallbackMethod() {
220+
return recordingStatusCallbackMethod;
221+
}
222+
207223
public String getName() {
208224
return name;
209225
}
@@ -222,6 +238,8 @@ public static class Builder {
222238
private List<ConferenceEvent> statusCallbackEvents;
223239
private Method statusCallbackMethod;
224240
private String statusCallback;
241+
private String recordingStatusCallback;
242+
private Method recordingStatusCallbackMethod;
225243
private String name;
226244

227245
public Builder(String name) {
@@ -293,6 +311,16 @@ public Builder eventCallbackUrl(String eventCallbackUrl) {
293311
return this;
294312
}
295313

314+
public Builder recordingStatusCallback(String recordingStatusCallback) {
315+
this.recordingStatusCallback = recordingStatusCallback;
316+
return this;
317+
}
318+
319+
public Builder recordingStatusCallbackMethod(Method recordingStatusCallbackMethod) {
320+
this.recordingStatusCallbackMethod = recordingStatusCallbackMethod;
321+
return this;
322+
}
323+
296324
public Conference build() {
297325
return new Conference(this);
298326
}

0 commit comments

Comments
 (0)