Skip to content

Commit

Permalink
dotnet sdk changes for machine detection optional params
Browse files Browse the repository at this point in the history
  • Loading branch information
Abinaya-Shunmugavel committed Sep 13, 2024
1 parent 8efb708 commit 4cd54b9
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Change Log
## [5.48.2](https://github.com/plivo/plivo-dotnet/tree/v5.48.2) (2024-09-12)
**Feature - Adding few optional parameters to the existing machine detection params**
- Added six new optional machine detection params `machine_detection_maximum_speech_length`,`machine_detection_initial_silence`,`machine_detection_maximum_words`,`machine_detection_initial_greeting`,`machine_detection_silence`,`machine_detection_answer_time`

## [5.48.1](https://github.com/plivo/plivo-dotnet/tree/v5.48.1) (2024-09-06)
**Feature - Adding more attribute on mdr object**
- Added `message_sent_time`, `message_updated_time` and `error-message` on get and list Message API
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.48.1
PM> Install-Package Plivo -Version 5.48.2
```

You can also use the .NET CLI to install this package as follows

```
> dotnet add package Plivo --version 5.48.1
> dotnet add package Plivo --version 5.48.2
```

## 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.48.1</ReleaseVersion>
<ReleaseVersion>5.48.2</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.48.1</version>
<version>5.48.2</version>
<title>Plivo</title>
<authors>Plivo SDKs Team</authors>
<owners>Plivo, Inc.</owners>
Expand Down
44 changes: 38 additions & 6 deletions src/Plivo/Resource/Call/CallInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ public CallInterface (HttpClient client) : base (client) {
/// <summary>
/// Create Call with the specified from, to, answerUrl, answerMethod, ringUrl, ringMethod, hangupUrl, hangupMethod,
/// fallbackUrl, fallbackMethod, callerName, sendDigits, sendOnPreanswer, timeLimit, hangupOnRing,
/// machineDetection, machineDetectionTime, machineDetectionUrl, machineDetectionMethod, sipHeaders,
/// ringTimeout, parentCallUuid and errorIfrentNotFound.
/// machineDetection, machineDetectionTime, machineDetectionUrl, machineDetectionMethod, machineDetectionMaximumSpeechLength,
/// machineDetectionInitialSilence, machineDetectionMaximumWords, machineDetectionInitialGreeting, machineDetectionSilence, machineDetectionAnswerTime,
/// sipHeaders,ringTimeout, parentCallUuid and errorIfrentNotFound.
/// </summary>
/// <returns>The create.</returns>
/// <param name="from">From.</param>
Expand All @@ -49,6 +50,12 @@ public CallInterface (HttpClient client) : base (client) {
/// <param name="machineDetectionTime">Machine detection time.</param>
/// <param name="machineDetectionUrl">Machine detection URL.</param>
/// <param name="machineDetectionMethod">Machine detection method.</param>
/// <param name="machineDetectionMaximumSpeechLength">Machine detection maximum speech length.</param>
/// <param name="machineDetectionInitialSilence">machine detection initial silence.</param>
/// <param name="machineDetectionMaximumWords">Machine detection maximum words.</param>
/// <param name="machineDetectionInitialGreeting">Machine detection initial greeting.</param>
/// <param name="machineDetectionSilence">Machine detection silence.</param>
/// <param name="machineDetectionAnswerTime">Machine detection answer time .</param>
/// <param name="sipHeaders">Sip headers.</param>
/// <param name="ringTimeout">Ring timeout.</param>
/// <param name="parentCallUuid">Parent call UUID.</param>
Expand All @@ -62,7 +69,10 @@ public CallCreateResponse Create (
bool? sendOnPreanswer = null, uint? timeLimit = null,
uint? hangupOnRing = null, string machineDetection = null,
uint? machineDetectionTime = null, string machineDetectionUrl = null,
string machineDetectionMethod = null, string sipHeaders = null,
string machineDetectionMethod = null, uint? machineDetectionMaximumSpeechLength = null,
uint? machineDetectionInitialSilence = null, uint? machineDetectionMaximumWords = null,
uint? machineDetectionInitialGreeting = null, uint? machineDetectionSilence = null,
uint? machineDetectionAnswerTime = null, string sipHeaders = null,
uint? ringTimeout = null, string parentCallUuid = null,
bool? errorIfrentNotFound = null)
{
Expand Down Expand Up @@ -105,6 +115,12 @@ public CallCreateResponse Create (
machineDetectionTime,
machineDetectionUrl,
machineDetectionMethod,
machineDetectionMaximumSpeechLength,
machineDetectionInitialSilence,
machineDetectionMaximumWords,
machineDetectionInitialGreeting,
machineDetectionSilence,
machineDetectionAnswerTime,
sipHeaders,
ringTimeout,
parentCallUuid,
Expand All @@ -126,8 +142,9 @@ public CallCreateResponse Create (
/// <summary>
/// Asynchronously create Call with the specified from, to, answerUrl, answerMethod, ringUrl, ringMethod, hangupUrl, hangupMethod,
/// fallbackUrl, fallbackMethod, callerName, sendDigits, sendOnPreanswer, timeLimit, hangupOnRing,
/// machineDetection, machineDetectionTime, machineDetectionUrl, machineDetectionMethod, sipHeaders,
/// ringTimeout, parentCallUuid and errorIfrentNotFound.
/// machineDetection, machineDetectionTime, machineDetectionUrl, machineDetectionMethod, machineDetectionMaximumSpeechLength,
/// machineDetectionInitialSilence, machineDetectionMaximumWords, machineDetectionInitialGreeting, machineDetectionSilence, machineDetectionAnswerTime,
/// sipHeaders, ringTimeout, parentCallUuid and errorIfrentNotFound.
/// </summary>
/// <returns>The create.</returns>
/// <param name="from">From.</param>
Expand All @@ -149,6 +166,12 @@ public CallCreateResponse Create (
/// <param name="machineDetectionTime">Machine detection time.</param>
/// <param name="machineDetectionUrl">Machine detection URL.</param>
/// <param name="machineDetectionMethod">Machine detection method.</param>
/// <param name="machineDetectionMaximumSpeechLength">Machine detection maximum speech length.</param>
/// <param name="machineDetectionInitialSilence">machine detection initial silence.</param>
/// <param name="machineDetectionMaximumWords">Machine detection maximum words.</param>
/// <param name="machineDetectionInitialGreeting">Machine detection initial greeting.</param>
/// <param name="machineDetectionSilence">Machine detection silence.</param>
/// <param name="machineDetectionAnswerTime">Machine detection answer time .</param>
/// <param name="sipHeaders">Sip headers.</param>
/// <param name="ringTimeout">Ring timeout.</param>
/// <param name="parentCallUuid">Parent call UUID.</param>
Expand All @@ -164,7 +187,10 @@ public async Task<AsyncResponse> CreateAsync(
bool? sendOnPreanswer = null, uint? timeLimit = null,
uint? hangupOnRing = null, string machineDetection = null,
uint? machineDetectionTime = null, string machineDetectionUrl = null,
string machineDetectionMethod = null, string sipHeaders = null,
string machineDetectionMethod = null, uint? machineDetectionMaximumSpeechLength = null,
uint? machineDetectionInitialSilence = null, uint? machineDetectionMaximumWords = null,
uint? machineDetectionInitialGreeting = null, uint? machineDetectionSilence = null,
uint? machineDetectionAnswerTime = null, string sipHeaders = null,
uint? ringTimeout = null, string parentCallUuid = null,
bool? errorIfrentNotFound = null, string callbackUrl = null, string callbackMethod = "POST")
{
Expand Down Expand Up @@ -195,6 +221,12 @@ public async Task<AsyncResponse> CreateAsync(
machineDetectionTime,
machineDetectionUrl,
machineDetectionMethod,
machineDetectionMaximumSpeechLength,
machineDetectionInitialSilence,
machineDetectionMaximumWords,
machineDetectionInitialGreeting,
machineDetectionSilence,
machineDetectionAnswerTime,
sipHeaders,
ringTimeout,
parentCallUuid,
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.48.1";
public const string SdkVersion = "5.48.2";
/// <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.48.1",
"version": "5.48.2",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
Expand Down

0 comments on commit 4cd54b9

Please sign in to comment.