Skip to content

Commit 2daa85c

Browse files
Thumpala Vinay KumarThumpala Vinay Kumar
Thumpala Vinay Kumar
authored and
Thumpala Vinay Kumar
committed
Merge branch 'master' into SMS-6100
2 parents 3b28474 + c6367a8 commit 2daa85c

File tree

12 files changed

+71
-17
lines changed

12 files changed

+71
-17
lines changed

Diff for: CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Change Log
22

3+
## [5.42.1](https://github.com/plivo/plivo-dotnet/tree/v5.42.1) (2023-12-19)
4+
**Feature - added param in speak api**
5+
- Added new field `type` for POST Speak APIs
6+
7+
## [5.42.0](https://github.com/plivo/plivo-dotnet/tree/v5.42.0) (2023-12-14)
8+
**Feature - added two fields vertical and campaign_alias**
9+
- Added response fields `vertical and campaign_alias`for LIST / GET Campaign APIs
10+
11+
## [5.41.1](https://github.com/plivo/plivo-dotnet/tree/v5.41.1) (2023-12-13)
12+
**Support from_number and to_number filters for List Message**
13+
- Supporting from_number and to_number params for List Message filtering
14+
315
## [5.41.0](https://github.com/plivo/plivo-dotnet/tree/v5.41.0) (2023-11-29)
416
**Feature - new response field error_code and error_reason**
517
- Added new response field `error_code and error_reason`for LIST / GET Campaign APIs

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ You can install this SDK either by referencing the .dll file or using NuGet.
1212
Use the following line to install the latest SDK using the NuGet CLI.
1313

1414
```
15-
PM> Install-Package Plivo -Version 5.41.0
15+
PM> Install-Package Plivo -Version 5.42.1
1616
```
1717

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

2020
```
21-
> dotnet add package Plivo --version 5.41.0
21+
> dotnet add package Plivo --version 5.42.1
2222
```
2323

2424
## Getting started

Diff for: src/Plivo/Plivo.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFrameworks>netstandard2.0;netstandard1.3</TargetFrameworks>
4-
<ReleaseVersion>5.41.0</ReleaseVersion>
4+
<ReleaseVersion>5.42.1</ReleaseVersion>
55
<Version />
66
<Authors>Plivo SDKs Team</Authors>
77
<Owners>Plivo Inc.</Owners>

Diff for: src/Plivo/Plivo.nuspec

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
<summary>A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML</summary>
55
<description>A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML</description>
66
<id>Plivo</id>
7-
<version>5.41.0</version>
7+
<version>5.42.1</version>
88
<title>Plivo</title>
99
<authors>Plivo SDKs Team</authors>
1010
<owners>Plivo, Inc.</owners>
1111
<licenseUrl>https://github.com/plivo/plivo-dotnet/blob/master/LICENSE.txt</licenseUrl>
1212
<projectUrl>http://github.com/plivo/plivo-dotnet</projectUrl>
1313
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1414
<releaseNotes>
15+
* 5.42.0 Added Params `vertical`, `campaign_alias` for GET and LIST Campaigns.
16+
* 5.41.1 Support Params `from_number` and `to_number` for LIST Message.
1517
* 5.41.0 Added New Params `error_code`, `error_reason` for GET and LIST Campaign.
1618
* 5.40.0 Added New Params `registration_status`.
1719
* 5.39.0 API support for verifying, updating, getting and deleting caller IDs.

Diff for: src/Plivo/Resource/Call/Call.cs

+6-4
Original file line numberDiff line numberDiff line change
@@ -275,14 +275,15 @@ public async Task<AsyncResponse> StopRecordingAsync(string URL = null,
275275
/// <param name="legs">Legs.</param>
276276
/// <param name="loop">Loop.</param>
277277
/// <param name="mix">Mix.</param>
278+
/// <param name="type">Type.</param>
278279
public UpdateResponse<Call> StartSpeaking(
279280
string text, string voice = null,
280281
string language = null, string legs = null, bool? loop = null,
281-
bool? mix = null)
282+
bool? mix = null, string type = null)
282283
{
283284
return ((CallInterface)Interface)
284285
.StartSpeaking(
285-
Id, text, voice, language, legs, loop, mix);
286+
Id, text, voice, language, legs, loop, mix, type);
286287
}
287288
/// <summary>
288289
/// Asynchronously starts the speaking.
@@ -294,16 +295,17 @@ public UpdateResponse<Call> StartSpeaking(
294295
/// <param name="legs">Legs.</param>
295296
/// <param name="loop">Loop.</param>
296297
/// <param name="mix">Mix.</param>
298+
/// <param name="type">Type.</param>
297299
/// <param name="callbackUrl">Callback URL.</param>
298300
/// <param name="callbackMethod">Callback method.</param>
299301
public async Task<AsyncResponse> StartSpeakingAsync(
300302
string text, string voice = null,
301303
string language = null, string legs = null, bool? loop = null,
302-
bool? mix = null, string callbackUrl = null, string callbackMethod = null)
304+
bool? mix = null, string type = null, string callbackUrl = null, string callbackMethod = null)
303305
{
304306
return await ((CallInterface)Interface)
305307
.StartSpeakingAsync(
306-
Id, text, voice, language, legs, loop, mix, callbackUrl, callbackMethod);
308+
Id, text, voice, language, legs, loop, mix, type, callbackUrl, callbackMethod);
307309
}
308310
#endregion
309311

Diff for: src/Plivo/Resource/Call/CallInterface.cs

+6-2
Original file line numberDiff line numberDiff line change
@@ -1047,10 +1047,11 @@ public async Task<AsyncResponse> StopRecordingAsync (string callUuid = null, str
10471047
/// <param name="legs">Legs.</param>
10481048
/// <param name="loop">Loop.</param>
10491049
/// <param name="mix">Mix.</param>
1050+
/// <param name="type">Type.</param>
10501051
public UpdateResponse<Call> StartSpeaking (
10511052
string callUuid = null, string text = null, string voice = null,
10521053
string language = null, string legs = null, bool? loop = null,
1053-
bool? mix = null) {
1054+
bool? mix = null, string type = null) {
10541055
MpcUtils.ValidParamString("callUuid",callUuid,true);
10551056
var mandatoryParams = new List<string> { "text" };
10561057
bool isVoiceRequest = true;
@@ -1063,6 +1064,7 @@ public UpdateResponse<Call> StartSpeaking (
10631064
legs,
10641065
loop,
10651066
mix,
1067+
type,
10661068
isVoiceRequest
10671069
});
10681070

@@ -1083,12 +1085,13 @@ public UpdateResponse<Call> StartSpeaking (
10831085
/// <param name="legs">Legs.</param>
10841086
/// <param name="loop">Loop.</param>
10851087
/// <param name="mix">Mix.</param>
1088+
/// <param name="type">Type.</param>
10861089
/// <param name="callbackUrl">Callback URL.</param>
10871090
/// <param name="callbackMethod">Callback method.</param>
10881091
public async Task<AsyncResponse> StartSpeakingAsync (
10891092
string callUuid = null, string text = null, string voice = null,
10901093
string language = null, string legs = null, bool? loop = null,
1091-
bool? mix = null, string callbackUrl = null, string callbackMethod = null) {
1094+
bool? mix = null, string type = null, string callbackUrl = null, string callbackMethod = null) {
10921095
MpcUtils.ValidParamString("callUuid",callUuid,true);
10931096
var mandatoryParams = new List<string> { "text" };
10941097
bool isVoiceRequest = true;
@@ -1101,6 +1104,7 @@ public async Task<AsyncResponse> StartSpeakingAsync (
11011104
legs,
11021105
loop,
11031106
mix,
1107+
type,
11041108
callbackUrl,
11051109
callbackMethod,
11061110
isVoiceRequest

Diff for: src/Plivo/Resource/Campaign/Campaign.cs

+12
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ public class CampaignResponse
112112

113113
[JsonProperty("error_reason")]
114114
public string ErrorReason { get; set; }
115+
116+
[JsonProperty("vertical")]
117+
public string Vertical { get; set; }
118+
119+
[JsonProperty("campaign_alias")]
120+
public string CampaignAlias { get; set; }
115121
}
116122

117123
[JsonObject(MemberSerialization.OptIn)]
@@ -231,6 +237,12 @@ public class ListCampaigns: Resource
231237
[JsonProperty("error_reason")]
232238
public string ErrorReason { get; set; }
233239

240+
[JsonProperty("vertical")]
241+
public string Vertical { get; set; }
242+
243+
[JsonProperty("campaign_alias")]
244+
public string CampaignAlias { get; set; }
245+
234246
public override string ToString()
235247
{
236248
return JsonConvert.SerializeObject(this, Formatting.Indented);

Diff for: src/Plivo/Resource/Message/MessageInterface.cs

+12
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,8 @@ public async Task<ListResponse<MMSMedia>> ListMediaAsync(string messageUuid)
580580
/// <param name="subaccount">Subaccount.</param>
581581
/// <param name="limit">Limit.</param>
582582
/// <param name="offset">Offset.</param>
583+
/// <param name="from_number">FromNumber.</param>
584+
/// <param name="to_number">ToNumber.</param>
583585
/// <param name="message_state">MessageState.</param>
584586
/// <param name="message_type">MessageType.</param>
585587
/// <param name="message_direction">MessageDirection.</param>
@@ -599,6 +601,8 @@ public MessageListResponse<Message> List(
599601
string subaccount = null,
600602
uint? limit = null,
601603
uint? offset = null,
604+
string from_number = null,
605+
string to_number = null,
602606
string message_state = null,
603607
string message_type = null,
604608
string message_direction = null,
@@ -628,6 +632,8 @@ public MessageListResponse<Message> List(
628632
subaccount,
629633
limit,
630634
offset,
635+
from_number,
636+
to_number,
631637
message_state,
632638
message_type,
633639
message_direction,
@@ -661,6 +667,8 @@ public MessageListResponse<Message> List(
661667
/// <param name="subaccount">Subaccount.</param>
662668
/// <param name="limit">Limit.</param>
663669
/// <param name="offset">Offset.</param>
670+
/// <param name="from_number">FromNumber.</param>
671+
/// <param name="to_number">ToNumber.</param>
664672
/// <param name="message_state">MessageState.</param>
665673
/// <param name="message_type">MessageType.</param>
666674
/// <param name="message_direction">MessageDirection.</param>
@@ -680,6 +688,8 @@ public async Task<MessageListResponse<Message>> ListAsync(
680688
string subaccount = null,
681689
uint? limit = null,
682690
uint? offset = null,
691+
string from_number = null,
692+
string to_number = null,
683693
string message_state = null,
684694
string message_type = null,
685695
string message_direction = null,
@@ -709,6 +719,8 @@ public async Task<MessageListResponse<Message>> ListAsync(
709719
subaccount,
710720
limit,
711721
offset,
722+
from_number,
723+
to_number,
712724
message_state,
713725
message_type,
714726
message_direction,

Diff for: src/Plivo/Version.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class Version
1010
/// <summary>
1111
/// DotNet SDK version
1212
/// </summary>
13-
public const string SdkVersion = "5.41.0";
13+
public const string SdkVersion = "5.42.1";
1414
/// <summary>
1515
/// Plivo API version
1616
/// </summary>

Diff for: tests_netcore/Plivo.NetCore.Test/Mocks/campaignGetResponse.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
},
3737
"campaign_source": "plivo",
3838
"error_code": "1001",
39-
"error_reason": "The campaign content falls under a prohibited content category."
39+
"error_reason": "The campaign content falls under a prohibited content category.",
40+
"vertical":"ENTERTAINMENT",
41+
"campaign_alias":"testing"
4042
}
4143
}

Diff for: tests_netcore/Plivo.NetCore.Test/Mocks/campaignListResponse.json

+12-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
"usecase": "MIXED",
3434
"campaign_source": "plivo",
3535
"error_code": "1001",
36-
"error_reason": "The campaign content falls under a prohibited content category."
36+
"error_reason": "The campaign content falls under a prohibited content category.",
37+
"vertical":"ENTERTAINMENT",
38+
"campaign_alias":"testing"
3739
},
3840
{
3941
"brand_id": "BHYYNCK",
@@ -59,7 +61,9 @@
5961
"usecase": "2FA",
6062
"campaign_source": "plivo",
6163
"error_code": "1001",
62-
"error_reason": "The campaign content falls under a prohibited content category."
64+
"error_reason": "The campaign content falls under a prohibited content category.",
65+
"vertical":"ENTERTAINMENT",
66+
"campaign_alias":"testing"
6367
},
6468
{
6569
"brand_id": "BHYYNCK",
@@ -80,7 +84,9 @@
8084
"usecase": "MIXED",
8185
"campaign_source": "plivo",
8286
"error_code": "1001",
83-
"error_reason": "The campaign content falls under a prohibited content category."
87+
"error_reason": "The campaign content falls under a prohibited content category.",
88+
"vertical":"ENTERTAINMENT",
89+
"campaign_alias":"testing"
8490
},
8591
{
8692
"brand_id": "BRPXS6E",
@@ -99,7 +105,9 @@
99105
"usecase": "ACCOUNT_NOTIFICATION",
100106
"campaign_source": "plivo",
101107
"error_code": "1001",
102-
"error_reason": "The campaign content falls under a prohibited content category."
108+
"error_reason": "The campaign content falls under a prohibited content category.",
109+
"vertical":"ENTERTAINMENT",
110+
"campaign_alias":"testing"
103111
}
104112
]
105113
}

Diff for: version.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "5.41.0",
2+
"version": "5.42.1",
33
"publicReleaseRefSpec": [
44
"^refs/heads/master$",
55
"^refs/heads/v\\d+(?:\\.\\d+)?$"

0 commit comments

Comments
 (0)