mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-24 14:50:50 +01:00
25 lines
670 B
C#
25 lines
670 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace BTCPayServer.Eclair
|
|||
|
{
|
|||
|
public class NodeInfo
|
|||
|
{
|
|||
|
public NodeInfo(string nodeId, string host, int port)
|
|||
|
{
|
|||
|
if (host == null)
|
|||
|
throw new ArgumentNullException(nameof(host));
|
|||
|
if (nodeId == null)
|
|||
|
throw new ArgumentNullException(nameof(nodeId));
|
|||
|
Port = port;
|
|||
|
Host = host;
|
|||
|
NodeId = nodeId;
|
|||
|
}
|
|||
|
public string NodeId { get; private set; }
|
|||
|
public string Host { get; private set; }
|
|||
|
public int Port { get; private set; }
|
|||
|
}
|
|||
|
}
|