Skip to content

Commit

Permalink
Merge pull request #269 from plivo/VT-7039
Browse files Browse the repository at this point in the history
newParamInSpeakApi
  • Loading branch information
eniyavan-muruganantham-plivo authored Jan 8, 2024
2 parents 73130bf + 5fbf492 commit c6367a8
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Plivo.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard1.3</TargetFrameworks>
<ReleaseVersion>5.42.0</ReleaseVersion>
<ReleaseVersion>5.42.1</ReleaseVersion>
<Version />
<Authors>Plivo SDKs Team</Authors>
<Owners>Plivo Inc.</Owners>
Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Plivo.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<summary>A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML</summary>
<description>A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML</description>
<id>Plivo</id>
<version>5.42.0</version>
<version>5.42.1</version>
<title>Plivo</title>
<authors>Plivo SDKs Team</authors>
<owners>Plivo, Inc.</owners>
Expand Down
10 changes: 6 additions & 4 deletions src/Plivo/Resource/Call/Call.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,15 @@ public async Task<AsyncResponse> StopRecordingAsync(string URL = null,
/// <param name="legs">Legs.</param>
/// <param name="loop">Loop.</param>
/// <param name="mix">Mix.</param>
/// <param name="type">Type.</param>
public UpdateResponse<Call> 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);
}
/// <summary>
/// Asynchronously starts the speaking.
Expand All @@ -294,16 +295,17 @@ public UpdateResponse<Call> StartSpeaking(
/// <param name="legs">Legs.</param>
/// <param name="loop">Loop.</param>
/// <param name="mix">Mix.</param>
/// <param name="type">Type.</param>
/// <param name="callbackUrl">Callback URL.</param>
/// <param name="callbackMethod">Callback method.</param>
public async Task<AsyncResponse> 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

Expand Down
8 changes: 6 additions & 2 deletions src/Plivo/Resource/Call/CallInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1047,10 +1047,11 @@ public async Task<AsyncResponse> StopRecordingAsync (string callUuid = null, str
/// <param name="legs">Legs.</param>
/// <param name="loop">Loop.</param>
/// <param name="mix">Mix.</param>
/// <param name="type">Type.</param>
public UpdateResponse<Call> 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<string> { "text" };
bool isVoiceRequest = true;
Expand All @@ -1063,6 +1064,7 @@ public UpdateResponse<Call> StartSpeaking (
legs,
loop,
mix,
type,
isVoiceRequest
});

Expand All @@ -1083,12 +1085,13 @@ public UpdateResponse<Call> StartSpeaking (
/// <param name="legs">Legs.</param>
/// <param name="loop">Loop.</param>
/// <param name="mix">Mix.</param>
/// <param name="type">Type.</param>
/// <param name="callbackUrl">Callback URL.</param>
/// <param name="callbackMethod">Callback method.</param>
public async Task<AsyncResponse> 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<string> { "text" };
bool isVoiceRequest = true;
Expand All @@ -1101,6 +1104,7 @@ public async Task<AsyncResponse> StartSpeakingAsync (
legs,
loop,
mix,
type,
callbackUrl,
callbackMethod,
isVoiceRequest
Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class Version
/// <summary>
/// DotNet SDK version
/// </summary>
public const string SdkVersion = "5.42.0";
public const string SdkVersion = "5.42.1";
/// <summary>
/// Plivo API version
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.42.0",
"version": "5.42.1",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
Expand Down

0 comments on commit c6367a8

Please sign in to comment.