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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user