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

inital commit for adding whatsapp support #262

Merged
merged 6 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
Loading