1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-28 02:06:31 +00:00
2018-08-16 10:40:35 +02:00

31 lines
790 B
C#

using System;
namespace CryptoExchange.Net.Objects
{
public class ApiProxy
{
/// <summary>
/// The host address of the proxy
/// </summary>
public string Host { get; }
/// <summary>
/// The port of the proxy
/// </summary>
public int Port { get; }
/// <summary>
/// Create new settings for a proxy
/// </summary>
/// <param name="host">The proxy hostname/ip</param>
/// <param name="port">The proxy port</param>
public ApiProxy(string host, int port)
{
if(string.IsNullOrEmpty(host) || port <= 0)
throw new ArgumentException("Proxy host or port not filled");
Host = host;
Port = port;
}
}
}