Skip to content

Commit

Permalink
Merge pull request #8 from ShvetsovZE/feature/introduce-interface
Browse files Browse the repository at this point in the history
Feature/introduce interface
  • Loading branch information
valters-tomsons committed Nov 8, 2019
2 parents 378c95c + 124906d commit e718403
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Expand Up @@ -6,10 +6,11 @@
using SharpPwned.NET.Model;
using Newtonsoft.Json;
using System.Collections.Generic;
using SharpPwned.NET.Interfaces;

namespace SharpPwned.NET
{
public class HaveIBeenPwnedRestClient
public class HaveIBeenPwnedRestClient : IHaveIBeenPwnedRestClient
{
private static readonly HttpClient client = new HttpClient();

Expand Down
15 changes: 15 additions & 0 deletions SharpPwned.NET/Interfaces/IHaveIBeenPwnedRestClient.cs
@@ -0,0 +1,15 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using SharpPwned.NET.Model;

namespace SharpPwned.NET.Interfaces
{
public interface IHaveIBeenPwnedRestClient
{
Task<List<Paste>> GetPasteAccount(string account);
Task<Breach> GetBreach(string site);
Task<List<Breach>> GetAllBreaches();
Task<List<Breach>> GetAccountBreaches(string account, bool? includeUnverified = false);
Task<bool> IsPasswordPwned(string password);
}
}

0 comments on commit e718403

Please sign in to comment.