Skip to content

Commit

Permalink
Merge pull request #127 from plivo/mms-support
Browse files Browse the repository at this point in the history
added media_id to send mms
  • Loading branch information
nixonsam authored May 19, 2020
2 parents 64e9c09 + 3c09489 commit 9cdd5f9
Show file tree
Hide file tree
Showing 5 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,6 +1,9 @@

# Change Log

## [v4.8.1](https://github.com/plivo/plivo-dotnet/tree/v4.8.1) (2020-05-19)
- Add Send MMS using Media_ID support.

## [v4.8.0](https://github.com/plivo/plivo-dotnet/tree/v4.8.0) (2020-04-29)
- Add V3 signature helper functions.

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>4.8.0</ReleaseVersion>
<ReleaseVersion>4.8.1</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>4.8.0</version>
<version>4.8.1</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>
* 4.8.1 Add Send MMS using Media_ID support.
* 4.8.0 Add V3 signature helper functions.
* 4.7.1 Fix Bulk call API response.
* 4.7.0 Add application cascade delete support.
Expand Down
20 changes: 13 additions & 7 deletions src/Plivo/Resource/Message/MessageInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public MessageInterface(HttpClient client) : base(client)

#region Create
/// <summary>
/// Create Message with the specified src, dst, text, type, url, method , log, media_urls.
/// Create Message with the specified src, dst, text, type, url, method , log, media_urls, media_ids.
/// </summary>
/// <returns>The create.</returns>
/// <param name="src">Source.</param>
Expand All @@ -37,9 +37,10 @@ public MessageInterface(HttpClient client) : base(client)
/// <param name="trackable">trackable.</param>
/// <param name="powerpackUUID">powerpackUUID</param>
///<param name="media_urls">media_urls</param>
///<param name="media_ids">media_ids</param>
public MessageCreateResponse Create(
List<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 url = null, string method = null, bool? log = null, bool? trackable = null, string powerpack_uuid = null, string[] media_urls = null, string[] media_ids = null)
{

string _dst = string.Join("<", dst);
Expand All @@ -59,7 +60,8 @@ public MessageCreateResponse Create(
method,
log,
trackable,
media_urls
media_urls,
media_ids
});
}
else if (powerpack_uuid != null && src == null)
Expand All @@ -76,7 +78,8 @@ public MessageCreateResponse Create(
method,
log,
trackable,
media_urls
media_urls,
media_ids
});


Expand Down Expand Up @@ -112,9 +115,10 @@ public MessageCreateResponse Create(
/// <param name="trackable">trackable.</param>
/// <param name="powerpackUUID">powerpackUUID</param>
///<param name="media_urls">media_urls</param>
///<param name="media_ids">media_ids</param>
public async Task<MessageCreateResponse> CreateAsync(
List<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 url = null, string method = null, bool? log = null, bool? trackable = null, string powerpack_uuid = null, string[] media_urls = null, string[] media_ids = null)
{

string _dst = string.Join("<", dst);
Expand All @@ -134,7 +138,8 @@ public async Task<MessageCreateResponse> CreateAsync(
method,
log,
trackable,
media_urls
media_urls,
media_ids
});
}
else if (powerpack_uuid != null && src == null)
Expand All @@ -151,7 +156,8 @@ public async Task<MessageCreateResponse> CreateAsync(
method,
log,
trackable,
media_urls
media_urls,
media_ids
});


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 = "4.8.0";
public const string SdkVersion = "4.8.1";
/// <summary>
/// Plivo API version
/// </summary>
Expand Down

0 comments on commit 9cdd5f9

Please sign in to comment.