From 987c84c745bea1286e82610b48d17509ed4433ad Mon Sep 17 00:00:00 2001 From: Jeremy McEntire Date: Fri, 9 Feb 2018 16:10:56 -0800 Subject: [PATCH] [Librarian] Regenerated @ 08a6416972d0fdaff7290be6e096c75c62411770 --- CHANGES.md | 9 +++++++++ .../Api/V2010/Account/ConferenceOptions.cs | 18 ++++++++++++++++++ .../Api/V2010/Account/ConferenceResource.cs | 12 ++++++++++-- 3 files changed, 37 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 102cf9fbc..0e58f0e17 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,15 @@ twilio-csharp Changelog ======================= +[2018-02-09] Version 5.9.6 +--------------------------- +**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 5.9.5 --------------------------- **Api** diff --git a/src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.cs b/src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.cs index 8eecf8fa1..f1fddf248 100644 --- a/src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.cs @@ -162,6 +162,14 @@ public class UpdateConferenceOptions : IOptions /// The status /// public ConferenceResource.UpdateStatusEnum Status { get; set; } + /// + /// The announce_url + /// + public Uri AnnounceUrl { get; set; } + /// + /// The announce_method + /// + public Twilio.Http.HttpMethod AnnounceMethod { get; set; } /// /// Construct a new UpdateConferenceOptions @@ -183,6 +191,16 @@ public List> GetParams() p.Add(new KeyValuePair("Status", Status.ToString())); } + if (AnnounceUrl != null) + { + p.Add(new KeyValuePair("AnnounceUrl", Serializers.Url(AnnounceUrl))); + } + + if (AnnounceMethod != null) + { + p.Add(new KeyValuePair("AnnounceMethod", AnnounceMethod.ToString())); + } + return p; } } diff --git a/src/Twilio/Rest/Api/V2010/Account/ConferenceResource.cs b/src/Twilio/Rest/Api/V2010/Account/ConferenceResource.cs index c2d733199..026a37fc8 100644 --- a/src/Twilio/Rest/Api/V2010/Account/ConferenceResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/ConferenceResource.cs @@ -334,14 +334,18 @@ public static async System.Threading.Tasks.Task UpdateAsync( /// The sid /// The account_sid /// The status + /// The announce_url + /// The announce_method /// Client to make requests to Twilio /// A single instance of Conference public static ConferenceResource Update(string pathSid, string pathAccountSid = null, ConferenceResource.UpdateStatusEnum status = null, + Uri announceUrl = null, + Twilio.Http.HttpMethod announceMethod = null, ITwilioRestClient client = null) { - var options = new UpdateConferenceOptions(pathSid){PathAccountSid = pathAccountSid, Status = status}; + var options = new UpdateConferenceOptions(pathSid){PathAccountSid = pathAccountSid, Status = status, AnnounceUrl = announceUrl, AnnounceMethod = announceMethod}; return Update(options, client); } @@ -352,14 +356,18 @@ public static ConferenceResource Update(string pathSid, /// The sid /// The account_sid /// The status + /// The announce_url + /// The announce_method /// Client to make requests to Twilio /// Task that resolves to A single instance of Conference public static async System.Threading.Tasks.Task UpdateAsync(string pathSid, string pathAccountSid = null, ConferenceResource.UpdateStatusEnum status = null, + Uri announceUrl = null, + Twilio.Http.HttpMethod announceMethod = null, ITwilioRestClient client = null) { - var options = new UpdateConferenceOptions(pathSid){PathAccountSid = pathAccountSid, Status = status}; + var options = new UpdateConferenceOptions(pathSid){PathAccountSid = pathAccountSid, Status = status, AnnounceUrl = announceUrl, AnnounceMethod = announceMethod}; return await UpdateAsync(options, client); } #endif