From 2fceadfe2f541fea775d3f1535fd0d147843aded Mon Sep 17 00:00:00 2001 From: Jeremy McEntire Date: Fri, 9 Feb 2018 16:24:59 -0800 Subject: [PATCH] [Librarian] Regenerated @ 08a6416972d0fdaff7290be6e096c75c62411770 --- CHANGES.md | 9 ++++ .../api/v2010/account/ConferenceUpdater.java | 45 +++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 0083877a23..880f8eba95 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,15 @@ twilio-java changelog ===================== +[2018-02-09] Version 7.17.7 +---------------------------- +**Api** +- Add `AnnounceUrl` and `AnnounceMethod` params for conference announce + +**Chat** +- Add support to looking up user channels by identity in v1 + + [2018-01-30] Version 7.17.6 ---------------------------- **Api** diff --git a/src/main/java/com/twilio/rest/api/v2010/account/ConferenceUpdater.java b/src/main/java/com/twilio/rest/api/v2010/account/ConferenceUpdater.java index 73231404e0..e73fe44cf2 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/ConferenceUpdater.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/ConferenceUpdater.java @@ -8,6 +8,7 @@ package com.twilio.rest.api.v2010.account; import com.twilio.base.Updater; +import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.exception.RestException; @@ -17,10 +18,14 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; +import java.net.URI; + public class ConferenceUpdater extends Updater { private String pathAccountSid; private final String pathSid; private Conference.UpdateStatus status; + private URI announceUrl; + private HttpMethod announceMethod; /** * Construct a new ConferenceUpdater. @@ -54,6 +59,38 @@ public ConferenceUpdater setStatus(final Conference.UpdateStatus status) { return this; } + /** + * The announce_url. + * + * @param announceUrl The announce_url + * @return this + */ + public ConferenceUpdater setAnnounceUrl(final URI announceUrl) { + this.announceUrl = announceUrl; + return this; + } + + /** + * The announce_url. + * + * @param announceUrl The announce_url + * @return this + */ + public ConferenceUpdater setAnnounceUrl(final String announceUrl) { + return setAnnounceUrl(Promoter.uriFromString(announceUrl)); + } + + /** + * The announce_method. + * + * @param announceMethod The announce_method + * @return this + */ + public ConferenceUpdater setAnnounceMethod(final HttpMethod announceMethod) { + this.announceMethod = announceMethod; + return this; + } + /** * Make the request to the Twilio API to perform the update. * @@ -103,5 +140,13 @@ private void addPostParams(final Request request) { if (status != null) { request.addPostParam("Status", status.toString()); } + + if (announceUrl != null) { + request.addPostParam("AnnounceUrl", announceUrl.toString()); + } + + if (announceMethod != null) { + request.addPostParam("AnnounceMethod", announceMethod.toString()); + } } } \ No newline at end of file