Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new params #241

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Changes from 5 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.24.0](https://github.com/plivo/plivo-dotnet/tree/v5.23.0) (2023-17-03)
- Added New Param `CreatedAt` to the response for the [list all profiles API](https://www.plivo.com/docs/sms/api/10dlc/profile#retrieve-all-profiles) and the [get profile API](https://www.plivo.com/docs/sms/api/10dlc/profile#retrieve-a-specific-profile) and the [list all brands API](https://www.plivo.com/docs/sms/api/10dlc/brand#retrieve-all-brands) and the [get brand API](https://www.plivo.com/docs/sms/api/10dlc/brand#retrieve-a-specific-brand) and the [list all campaigns API](https://www.plivo.com/docs/sms/api/10dlc/campaign#retrieve-all-campaigns) and the [get campaign API](https://www.plivo.com/docs/sms/api/10dlc/campaign#retrieve-a-specific-campaign)

## [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)

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.23.0</ReleaseVersion>
<ReleaseVersion>5.24.0</ReleaseVersion>
<Version />
<Authors>Plivo SDKs Team</Authors>
<Owners>Plivo Inc.</Owners>
3 changes: 2 additions & 1 deletion src/Plivo/Plivo.nuspec
Original file line number Diff line number Diff line change
@@ -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.23.0</version>
<version>5.24.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.24.0 Added New Param 'CreatedAt' to List Profiles, Get Profile, List Brands, Get Brand, List Campaigns, Get Campaign APIs
* 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
6 changes: 6 additions & 0 deletions src/Plivo/Resource/Brand/Brand.cs
Original file line number Diff line number Diff line change
@@ -46,6 +46,9 @@ public class BrandResponse

[JsonProperty("address")]
public Address Address { get; set; }

[JsonProperty("created_at")]
public string CreatedAt { get; set; }

}

@@ -159,6 +162,9 @@ public class ListBrands: Resource
[JsonProperty("vetting_status")]
public string VettingStatus { get; set; }

[JsonProperty("created_at")]
public string CreatedAt { get; set; }

[JsonProperty("address")]
public Address Address { get; set; }

6 changes: 5 additions & 1 deletion src/Plivo/Resource/Campaign/Campaign.cs
Original file line number Diff line number Diff line change
@@ -98,7 +98,8 @@ public class CampaignResponse
[JsonProperty("help_keywords")]
public string HelpKeywords { get; set; }


[JsonProperty("created_at")]
public string CreatedAt { get; set; }
}

[JsonObject(MemberSerialization.OptIn)]
@@ -203,6 +204,9 @@ public class ListCampaigns: Resource
[JsonProperty("help_keywords")]
public string HelpKeywords { get; set; }

[JsonProperty("created_at")]
public string CreatedAt { get; set; }

public override string ToString()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
6 changes: 6 additions & 0 deletions src/Plivo/Resource/Profile/Profile.cs
Original file line number Diff line number Diff line change
@@ -122,6 +122,9 @@ public class Profile
[JsonProperty("plivo_subaccount")]
public string PlivoSubaccount { get; set; }

[JsonProperty("created_at")]
public string CreatedAt { get; set; }

}

[JsonObject(MemberSerialization.OptIn)]
@@ -175,6 +178,9 @@ public class ListProfiles: Resource
[JsonProperty("profile_uuid")]
public string ProfileUuid { get; set; }

[JsonProperty("created_at")]
public string CreatedAt { get; set; }

[JsonProperty("plivo_subaccount")]
public string PlivoSubaccount { get; set; }

2 changes: 1 addition & 1 deletion src/Plivo/Version.cs
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ public class Version
/// <summary>
/// DotNet SDK version
/// </summary>
public const string SdkVersion = "5.23.0";
public const string SdkVersion = "5.24.0";
/// <summary>
/// Plivo API version
/// </summary>
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.23.0",
"version": "5.24.0",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"