Class PeerModel
- Namespace
- NLightning.Domain.Node.Models
- Assembly
- NLightning.Domain.dll
- Inheritance
-
PeerModel
- Inherited Members
-
Constructors
PeerModel(CompactPubKey, string, uint)
public PeerModel(CompactPubKey nodeId, string host, uint port)
Parameters
nodeId
CompactPubKey
host
string
port
uint
Properties
Channels
public ICollection<ChannelModel>? Channels { get; set; }
Property Value
- ICollection<ChannelModel>
Host
public string Host { get; }
Property Value
- string
LastSeenAt
public DateTime LastSeenAt { get; set; }
Property Value
- DateTime
NodeId
public CompactPubKey NodeId { get; }
Property Value
- CompactPubKey
PeerAddressInfo
public PeerAddressInfo PeerAddressInfo { get; }
Property Value
- PeerAddressInfo
Port
public uint Port { get; }
Property Value
- uint
Methods
SetPeerService(IPeerService)
public void SetPeerService(IPeerService peerService)
Parameters
peerService
IPeerService
TryGetPeerService(out IPeerService)
public bool TryGetPeerService(out IPeerService peerService)
Parameters
peerService
IPeerService
Returns
- bool