ln.skyscanner/entities/Subnet.cs

51 lines
1.2 KiB
C#
Raw Normal View History

2019-03-13 08:20:53 +01:00
// /**
// * 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;
2019-03-21 14:06:36 +01:00
using ln.types.odb;
using System.Collections.Generic;
using System.Linq;
2019-04-02 01:25:44 +02:00
using ln.types.net;
2019-03-13 08:20:53 +01:00
namespace ln.skyscanner.entities
{
2019-08-29 13:14:52 +02:00
public class Subnet
2019-03-13 08:20:53 +01:00
{
2019-03-27 07:49:49 +01:00
public Guid ID { get; private set; } = Guid.NewGuid();
2019-03-21 14:06:36 +01:00
2019-04-02 01:25:44 +02:00
public readonly Network4 Network;
2019-03-13 08:20:53 +01:00
public String Name;
public DateTime FirstSeen;
2019-03-15 07:43:12 +01:00
public DateTime LastScan;
2019-03-26 12:53:42 +01:00
public bool AutoScan { get; set; }
2019-03-13 08:20:53 +01:00
2019-04-03 09:19:37 +02:00
public IEnumerable<NetworkInterface> AttachedInterfaces => throw new NotImplementedException();
public IEnumerable<Node> AttachedNodes => throw new NotImplementedException();
2019-03-21 14:06:36 +01:00
private Subnet()
2019-03-13 08:20:53 +01:00
{
}
2019-04-02 01:25:44 +02:00
public Subnet(Network4 network)
2019-03-13 08:20:53 +01:00
{
2019-04-02 01:25:44 +02:00
Network = network;
2019-03-15 07:43:12 +01:00
Name = Network.ToString();
2019-03-13 08:20:53 +01:00
FirstSeen = DateTime.Now;
}
2019-03-18 08:12:54 +01:00
public override string ToString()
{
return Network.ToString();
}
2019-03-13 08:20:53 +01:00
}
}