1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-21 13:23:07 +00:00

Added unit tests, added solution, added travis build

This commit is contained in:
JKorf
2018-03-07 10:32:57 +01:00
parent 27fb92f999
commit 94eb269ade
29 changed files with 339 additions and 0 deletions
@@ -0,0 +1,27 @@
using System;
namespace CryptoExchange.Net.Authentication
{
public class ApiCredentials
{
/// <summary>
/// The api key
/// </summary>
public string Key { get; }
/// <summary>
/// The api secret
/// </summary>
public string Secret { get; }
public ApiCredentials() { }
public ApiCredentials(string key, string secret)
{
if(string.IsNullOrEmpty(key) || string.IsNullOrEmpty(secret))
throw new ArgumentException("Apikey or apisecret not provided");
Key = key;
Secret = secret;
}
}
}