Skip to content

Commit

Permalink
Merge pull request #240 from plivo/SMS-4946
Browse files Browse the repository at this point in the history
SMS-4946/SMS-4848: adding Is Domestic in Get Message and List Message API
  • Loading branch information
narayana-plivo authored Mar 3, 2023
2 parents cf78130 + e028c47 commit 52d5c3e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Change Log
## [v5.23.0](https://github.com/plivo/plivo-dotnet/tree/v5.23.0) (2023-03-03)
- Added new param `IsDomestic` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message)

## [v5.22.0](https://github.com/plivo/plivo-dotnet/tree/v5.22.0) (2023-02-23)
- Enhance MDR filtering capabilities

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.22.0</ReleaseVersion>
<ReleaseVersion>5.23.0</ReleaseVersion>
<Version />
<Authors>Plivo SDKs Team</Authors>
<Owners>Plivo Inc.</Owners>
Expand Down
3 changes: 2 additions & 1 deletion src/Plivo/Plivo.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
<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.21.0</version>
<version>5.23.0</version>
<title>Plivo</title>
<authors>Plivo SDKs Team</authors>
<owners>Plivo, Inc.</owners>
<licenseUrl>https://github.com/plivo/plivo-dotnet/blob/master/LICENSE.txt</licenseUrl>
<projectUrl>http://github.com/plivo/plivo-dotnet</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<releaseNotes>
* 5.23.0 Added New Param 'IsDomestic' to List Message and Get Message APIs
* 5.22.0 Added New Params to List Message and Get Message APIs
* 5.21.0 Added New Param 'RequesterIp' to List Message and Get Message APIs
* 5.19.0 Added Update campaign endpoints
Expand Down
9 changes: 8 additions & 1 deletion src/Plivo/Resource/Message/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ public class Message : Resource
/// <value>The requester ip.</value>
public string RequesterIp { get; set; }

/// <summary>
/// Gets or sets the is domestic.
/// </summary>
/// <value>The is domestic.</value>
public bool? IsDomestic { get; set; }

public override string ToString()
{
return "\n" +
Expand All @@ -131,7 +137,8 @@ public override string ToString()
"DestinationCountryIso2: " + DestinationCountryIso2 + "\n" +
"TendlcCampaignId: " + TendlcCampaignId + "\n" +
"TendlcRegistrationStatus: "+ TendlcRegistrationStatus + "\n" +
"RequesterIP: " + RequesterIp + "\n";
"RequesterIP: " + RequesterIp + "\n" +
"IsDomestic: " + IsDomestic + "\n";
}
#region ListMedia
/// <summary>
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.22.0";
public const string SdkVersion = "5.23.0";
/// <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.22.0",
"version": "5.23.0",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
Expand Down

0 comments on commit 52d5c3e

Please sign in to comment.