48 lines
984 B
C#
48 lines
984 B
C#
// /**
|
|
// * File: Subnet.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;
|
|
using ln.types;
|
|
using ln.types.odb;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
namespace ln.skyscanner.entities
|
|
{
|
|
public class CrawledSubnet : Persistent
|
|
{
|
|
public readonly CIDR Network;
|
|
public String Name;
|
|
|
|
public DateTime FirstSeen;
|
|
|
|
public DateTime LastScan;
|
|
public DateTime NextScan;
|
|
|
|
|
|
private CrawledSubnet()
|
|
{
|
|
FirstSeen = DateTime.Now;
|
|
}
|
|
|
|
public CrawledSubnet(CIDR cidr)
|
|
{
|
|
Network = cidr;
|
|
Name = Network.ToString();
|
|
FirstSeen = DateTime.Now;
|
|
}
|
|
|
|
|
|
public override string ToString()
|
|
{
|
|
return Network.ToString();
|
|
}
|
|
|
|
}
|
|
}
|