From 94dbcbf74fc1740969923af2a800ac06a30e0b16 Mon Sep 17 00:00:00 2001 From: ajay-plivo Date: Tue, 19 Dec 2023 18:47:34 +0530 Subject: [PATCH 1/2] newParamInSpeakApi --- CHANGELOG.md | 4 ++++ src/Plivo/Plivo.csproj | 2 +- src/Plivo/Plivo.nuspec | 2 +- src/Plivo/Resource/Call/Call.cs | 10 ++++++---- src/Plivo/Resource/Call/CallInterface.cs | 8 ++++++-- src/Plivo/Version.cs | 2 +- version.json | 2 +- 7 files changed, 20 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb3275f7..e56492d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [5.42.1](https://github.com/plivo/plivo-dotnet/tree/v5.42.1) (2023-12-19) +**Feature - added param in speak api** +- Added new field `type` for POST Speak APIs + ## [5.42.0](https://github.com/plivo/plivo-dotnet/tree/v5.42.0) (2023-12-14) **Feature - added two fields vertical and campaign_alias** - Added response fields `vertical and campaign_alias`for LIST / GET Campaign APIs diff --git a/src/Plivo/Plivo.csproj b/src/Plivo/Plivo.csproj index b010458d..b0c6fc73 100644 --- a/src/Plivo/Plivo.csproj +++ b/src/Plivo/Plivo.csproj @@ -1,7 +1,7 @@ netstandard2.0;netstandard1.3 - 5.42.0 + 5.42.1 Plivo SDKs Team Plivo Inc. diff --git a/src/Plivo/Plivo.nuspec b/src/Plivo/Plivo.nuspec index 29747fd6..c173fcf3 100644 --- a/src/Plivo/Plivo.nuspec +++ b/src/Plivo/Plivo.nuspec @@ -4,7 +4,7 @@ A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML Plivo - 5.42.0 + 5.42.1 Plivo Plivo SDKs Team Plivo, Inc. diff --git a/src/Plivo/Resource/Call/Call.cs b/src/Plivo/Resource/Call/Call.cs index 81854e7c..6981cc70 100755 --- a/src/Plivo/Resource/Call/Call.cs +++ b/src/Plivo/Resource/Call/Call.cs @@ -275,14 +275,15 @@ public async Task StopRecordingAsync(string URL = null, /// Legs. /// Loop. /// Mix. + /// Type. public UpdateResponse StartSpeaking( string text, string voice = null, string language = null, string legs = null, bool? loop = null, - bool? mix = null) + bool? mix = null, string type = null) { return ((CallInterface)Interface) .StartSpeaking( - Id, text, voice, language, legs, loop, mix); + Id, text, voice, language, legs, loop, mix, type); } /// /// Asynchronously starts the speaking. @@ -294,16 +295,17 @@ public UpdateResponse StartSpeaking( /// Legs. /// Loop. /// Mix. + /// Type. /// Callback URL. /// Callback method. public async Task StartSpeakingAsync( string text, string voice = null, string language = null, string legs = null, bool? loop = null, - bool? mix = null, string callbackUrl = null, string callbackMethod = null) + bool? mix = null, string type = null, string callbackUrl = null, string callbackMethod = null) { return await ((CallInterface)Interface) .StartSpeakingAsync( - Id, text, voice, language, legs, loop, mix, callbackUrl, callbackMethod); + Id, text, voice, language, legs, loop, mix, type, callbackUrl, callbackMethod); } #endregion diff --git a/src/Plivo/Resource/Call/CallInterface.cs b/src/Plivo/Resource/Call/CallInterface.cs index 40eb3772..f3921f6d 100755 --- a/src/Plivo/Resource/Call/CallInterface.cs +++ b/src/Plivo/Resource/Call/CallInterface.cs @@ -1047,10 +1047,11 @@ public async Task StopRecordingAsync (string callUuid = null, str /// Legs. /// Loop. /// Mix. + /// Type. public UpdateResponse StartSpeaking ( string callUuid = null, string text = null, string voice = null, string language = null, string legs = null, bool? loop = null, - bool? mix = null) { + bool? mix = null, string type = null) { MpcUtils.ValidParamString("callUuid",callUuid,true); var mandatoryParams = new List { "text" }; bool isVoiceRequest = true; @@ -1063,6 +1064,7 @@ public UpdateResponse StartSpeaking ( legs, loop, mix, + type, isVoiceRequest }); @@ -1083,12 +1085,13 @@ public UpdateResponse StartSpeaking ( /// Legs. /// Loop. /// Mix. + /// Type. /// Callback URL. /// Callback method. public async Task StartSpeakingAsync ( string callUuid = null, string text = null, string voice = null, string language = null, string legs = null, bool? loop = null, - bool? mix = null, string callbackUrl = null, string callbackMethod = null) { + bool? mix = null, string type = null, string callbackUrl = null, string callbackMethod = null) { MpcUtils.ValidParamString("callUuid",callUuid,true); var mandatoryParams = new List { "text" }; bool isVoiceRequest = true; @@ -1101,6 +1104,7 @@ public async Task StartSpeakingAsync ( legs, loop, mix, + type, callbackUrl, callbackMethod, isVoiceRequest diff --git a/src/Plivo/Version.cs b/src/Plivo/Version.cs index c0bd972a..b510ef13 100644 --- a/src/Plivo/Version.cs +++ b/src/Plivo/Version.cs @@ -10,7 +10,7 @@ public class Version /// /// DotNet SDK version /// - public const string SdkVersion = "5.42.0"; + public const string SdkVersion = "5.42.1"; /// /// Plivo API version /// diff --git a/version.json b/version.json index d67c76a7..722d8639 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "version": "5.42.0", + "version": "5.42.1", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$" From 5fbf4925fb80426ebb8c85e2786268c05b6e95cd Mon Sep 17 00:00:00 2001 From: ajay-plivo Date: Mon, 8 Jan 2024 17:53:11 +0530 Subject: [PATCH 2/2] readmeupdated --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 816dee33..c10efc49 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ You can install this SDK either by referencing the .dll file or using NuGet. Use the following line to install the latest SDK using the NuGet CLI. ``` -PM> Install-Package Plivo -Version 5.42.0 +PM> Install-Package Plivo -Version 5.42.1 ``` You can also use the .NET CLI to install this package as follows ``` -> dotnet add package Plivo --version 5.42.0 +> dotnet add package Plivo --version 5.42.1 ``` ## Getting started