Skip to content

Commit

Permalink
Merge pull request #103 from Nexmo/RedactImplementation
Browse files Browse the repository at this point in the history
Redact implementation
  • Loading branch information
Rabeb Othmani committed Aug 17, 2018
2 parents bce19aa + 07b5d0a commit f26578d
Show file tree
Hide file tree
Showing 6 changed files with 443 additions and 228 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 3.1.0 (2018-08-16)
* Added Redact API implementation.

# 3.0.1 (2018-03-05)
* Fixed missed NumberInsight instanciation (#90)

Expand Down
2 changes: 2 additions & 0 deletions Nexmo.Api/Client/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ private void PropagateCredentials()
Search = new ClientMethods.Search(Credentials);
ShortCode = new ClientMethods.ShortCode(Credentials);
SMS = new ClientMethods.SMS(Credentials);
Redact = new ClientMethods.Redact(Credentials);
}

public ClientMethods.Account Account { get; private set; }
Expand All @@ -47,5 +48,6 @@ private void PropagateCredentials()
public ClientMethods.Search Search { get; private set; }
public ClientMethods.ShortCode ShortCode { get; private set; }
public ClientMethods.SMS SMS { get; private set; }
public ClientMethods.Redact Redact { get; private set; }
}
}
25 changes: 25 additions & 0 deletions Nexmo.Api/Client/Redact.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using Nexmo.Api.Request;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Nexmo.Api.Redact;

namespace Nexmo.Api.ClientMethods
{
public class Redact
{
public Credentials Credentials { get; set; }

public Redact(Credentials creds)
{
Credentials = creds;
}

public void RedactTransaction (RedactRequest redactRequest, Credentials creds = null)
{
Nexmo.Api.Redact.RedactTransaction(redactRequest, creds ?? Credentials);
}
}
}
Loading

0 comments on commit f26578d

Please sign in to comment.