ln.skyscanner/entities/Node.cs

38 lines
820 B
C#
Raw Normal View History

2019-03-11 09:00:07 +01:00
// /**
// * File: IPNode.cs
// * Author: haraldwolff
// *
// * This file and it's content is copyrighted by the Author and / or copyright holder.
// * Any use wihtout proper permission is illegal and may lead to legal actions.
// *
// *
// **/
using System;
2019-03-13 08:20:53 +01:00
using ln.types;
using System.Collections.Generic;
2019-03-11 09:00:07 +01:00
namespace ln.skyscanner.entities
{
public class Node
{
2019-03-13 08:20:53 +01:00
public CIDR PrimaryIP;
public String Name;
public List<NetworkInterface> NetworkInterfaces = new List<NetworkInterface>();
public DateTime FirstSeen;
public DateTime LastSeen;
2019-03-11 09:00:07 +01:00
public Node()
{
2019-03-13 08:20:53 +01:00
FirstSeen = DateTime.Now;
2019-03-11 09:00:07 +01:00
}
2019-03-13 08:20:53 +01:00
public Node(CIDR primaryIP)
2019-03-11 09:00:07 +01:00
{
2019-03-13 08:20:53 +01:00
PrimaryIP = primaryIP;
FirstSeen = DateTime.Now;
2019-03-11 09:00:07 +01:00
}
}
}