54 lines
1.1 KiB
C#
54 lines
1.1 KiB
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;
|
|
using ln.types.net;
|
|
using ln.types.odb.attributes;
|
|
namespace ln.skyscanner.crawl
|
|
{
|
|
public class CrawledSubnet
|
|
{
|
|
[DocumentID]
|
|
Guid ID = Guid.NewGuid();
|
|
|
|
public readonly Network4 Network;
|
|
public String Name;
|
|
|
|
public DateTime FirstSeen;
|
|
|
|
public DateTime LastScan;
|
|
public DateTime NextScan;
|
|
|
|
public bool DisableCrawling;
|
|
|
|
private CrawledSubnet()
|
|
{
|
|
FirstSeen = DateTime.Now;
|
|
}
|
|
|
|
public CrawledSubnet(Network4 network)
|
|
{
|
|
Network = network;
|
|
Name = Network.ToString();
|
|
FirstSeen = DateTime.Now;
|
|
}
|
|
|
|
|
|
public override string ToString()
|
|
{
|
|
return Network.ToString();
|
|
}
|
|
|
|
}
|
|
}
|