Skip to content

Commit

Permalink
Merge pull request #262 from plivo/SMS-6334
Browse files Browse the repository at this point in the history
inital commit for adding whatsapp support
  • Loading branch information
narayana-plivo authored Oct 13, 2023
2 parents d31d6d8 + e1a6354 commit a981393
Show file tree
Hide file tree
Showing 10 changed files with 375 additions and 40 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## [5.34.0](https://github.com/plivo/plivo-dotnet/tree/v5.34.0) (2023-10-13)
**Feature - WhatsApp message support**
- Added new params `template`, `template_json_string` and new message_type `whatsapp` to [send message API](https://www.plivo.com/docs/sms/api/message#send-a-message)
- Added new `message_state` (`read`), `message_type`(`whatsapp`), `conversation_id`, `conversation_origin`, `conversation_expiration_timestamp` in [list all messages API](https://www.plivo.com/docs/sms/api/message#list-all-messages) and [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message) response

## [5.33.0](https://github.com/plivo/plivo-dotnet/tree/v5.33.0) (2023-08-25)
**Feature - Added New Param 'carrier_fees', 'carrier_fees_rate', 'destination_network' in Get Message and List Message APIs**
- Added new params on message get and list response
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.33.0
PM> Install-Package Plivo -Version 5.34.0
```

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

```
> dotnet add package Plivo --version 5.33.0
> dotnet add package Plivo --version 5.34.0
```

## 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.33.0</ReleaseVersion>
<ReleaseVersion>5.34.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.33.0</version>
<version>5.34.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.34.0 Added new params `template`, `template_json_string` and message_type `whatsapp`in send message API. Added new `message_state` (`read`), `message_type` (`whatsapp`), `conversation_id`, `conversation_origin`, `conversation_expiration_timestamp` in List Message and Get Message APIs.
* 5.33.0 Added New Params `DestinationNetwork`, `CarrierFeesRate`, `CarrierFees`.
* 5.32.0 Added New Params `DLTEntityID`, `DLTTemplateID`, `DLTTemplateCategory`.
* 5.31.0 Added functionality to start, stop and fetch audio streams
Expand Down
23 changes: 22 additions & 1 deletion src/Plivo/Resource/Message/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,24 @@ public class Message : Resource
/// <value> DLT Template Category.</value>
public string DltTemplateCategory { get; set; }

/// <summary>
/// Gets or sets the conversation id.
/// </summary>
/// <value>The conversation id.</value>
public string ConversationId { get; set; }

/// <summary>
/// Gets or sets the conversation origin.
/// </summary>
/// <value>The conversation origin.</value>
public string ConversationOrigin { get; set; }

/// <summary>
/// Gets or sets the conversation expiration timestamp.
/// </summary>
/// <value>The conversation expiration timestamp.</value>
public string ConversationExpirationTimestamp { get; set; }

public override string ToString()
{
return "\n" +
Expand Down Expand Up @@ -188,7 +206,10 @@ public override string ToString()
"ReplacedSender: " + ReplacedSender + "\n" +
"DLTEntityID: " + DltEntityId + "\n" +
"DLTTemplateID: " + DltTemplateId + "\n" +
"DLTTemplateCategory: " + DltTemplateCategory + "\n";
"DLTTemplateCategory: " + DltTemplateCategory + "\n" +
"ConversationID: " + ConversationId + "\n" +
"ConversationOrigin: " + ConversationOrigin + "\n" +
"ConversationExpirationTimestamp: " + ConversationExpirationTimestamp + "\n";
}
#region ListMedia
/// <summary>
Expand Down
Loading

0 comments on commit a981393

Please sign in to comment.