Skip to content

Commit

Permalink
Merge pull request #231 from plivo/message-expiry
Browse files Browse the repository at this point in the history
message expiry param support for send message api, get and list api
  • Loading branch information
narayana-plivo authored Jan 18, 2023
2 parents 4cbc4f2 + ddc2fa9 commit 0b4068c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 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.20.0](https://github.com/plivo/plivo-dotnet/tree/v5.20.0) (2023-01-18)
- Added new param - 'message_expiry' in plivo-dotnet

## [v5.19.0](https://github.com/plivo/plivo-dotnet/tree/v5.19.0) (2022-12-16)
- Added: Update campaign api endpoints

Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Plivo.csproj
100755 → 100644
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.19.0</ReleaseVersion>
<ReleaseVersion>5.20.0</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.19.0</version>
<version>5.20.0</version>
<title>Plivo</title>
<authors>Plivo SDKs Team</authors>
<owners>Plivo, Inc.</owners>
Expand Down
1 change: 1 addition & 0 deletions src/Plivo/Resource/Message/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public class Message : Resource
/// </summary>
/// <value>The units.</value>
public uint Units { get; set; }


/// <summary>
/// Gets or sets the powerpack id.
Expand Down
18 changes: 12 additions & 6 deletions src/Plivo/Resource/Message/MessageInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,10 @@ public async Task<MessageCreateResponse> CreateAsync(
/// <param name="powerpackUUID">powerpackUUID</param>
///<param name="media_urls">media_urls</param>
///<param name="media_ids">media_ids</param>
///<param name="message_expiry">message_expiry</param>
public MessageCreateResponse Create(
string dst, string text = null, string src = null, string type = null,
string url = null, string method = null, bool? log = null, bool? trackable = null, string powerpack_uuid = null, string[] media_urls = null, string[] media_ids = null)
string url = null, string method = null, bool? log = null, bool? trackable = null, string powerpack_uuid = null, string[] media_urls = null, string[] media_ids = null, uint? message_expiry = null)
{
string _dst = dst;
Dictionary<string, object> data = null;
Expand All @@ -217,7 +218,8 @@ public MessageCreateResponse Create(
log,
trackable,
media_urls,
media_ids
media_ids,
message_expiry
});
}
else if (powerpack_uuid != null && src == null)
Expand All @@ -235,7 +237,8 @@ public MessageCreateResponse Create(
log,
trackable,
media_urls,
media_ids
media_ids,
message_expiry
});


Expand Down Expand Up @@ -272,9 +275,10 @@ public MessageCreateResponse Create(
/// <param name="powerpackUUID">powerpackUUID</param>
///<param name="media_urls">media_urls</param>
///<param name="media_ids">media_ids</param>
///<param name="message_expiry">message_expiry</param>
public async Task<MessageCreateResponse> CreateAsync(
string dst, string text = null, string src = null, string type = null,
string url = null, string method = null, bool? log = null, bool? trackable = null, string powerpack_uuid = null, string[] media_urls = null, string[] media_ids = null)
string url = null, string method = null, bool? log = null, bool? trackable = null, string powerpack_uuid = null, string[] media_urls = null, string[] media_ids = null, uint? message_expiry = null)
{
string _dst = dst;
Dictionary<string, object> data = null;
Expand All @@ -294,7 +298,8 @@ public async Task<MessageCreateResponse> CreateAsync(
log,
trackable,
media_urls,
media_ids
media_ids,
message_expiry
});
}
else if (powerpack_uuid != null && src == null)
Expand All @@ -312,7 +317,8 @@ public async Task<MessageCreateResponse> CreateAsync(
log,
trackable,
media_urls,
media_ids
media_ids,
message_expiry
});


Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Version.cs
100755 → 100644
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.19.0";
public const string SdkVersion = "5.20.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.19.0",
"version": "5.20.0",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
Expand Down

0 comments on commit 0b4068c

Please sign in to comment.