Skip to content

Commit

Permalink
[Librarian] Regenerated @ 08a6416972d0fdaff7290be6e096c75c62411770
Browse files Browse the repository at this point in the history
  • Loading branch information
jmctwilio committed Feb 10, 2018
1 parent 3fa9966 commit 2fceadf
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -17,10 +18,14 @@
import com.twilio.http.TwilioRestClient;
import com.twilio.rest.Domains;

import java.net.URI;

public class ConferenceUpdater extends Updater<Conference> {
private String pathAccountSid;
private final String pathSid;
private Conference.UpdateStatus status;
private URI announceUrl;
private HttpMethod announceMethod;

/**
* Construct a new ConferenceUpdater.
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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());
}
}
}

0 comments on commit 2fceadf

Please sign in to comment.