42 lines
904 B
C#
42 lines
904 B
C#
// /**
|
|
// * File: IntfIP.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.odb;
|
|
using ln.types;
|
|
using Newtonsoft.Json;
|
|
namespace ln.skyscanner.entities
|
|
{
|
|
public class IntfIP
|
|
{
|
|
[DocumentID]
|
|
public readonly Guid ID = Guid.NewGuid();
|
|
|
|
Guid interfaceID = Guid.Empty;
|
|
|
|
[JsonIgnore]
|
|
public NetworkInterface NetworkInterface => SkyScanner.Instance.Entities.interfaceCollection.Select(interfaceID);
|
|
|
|
public CIDR IP { get; private set; }
|
|
|
|
public IntfIP()
|
|
{
|
|
}
|
|
public IntfIP(NetworkInterface networkInterface,CIDR ip)
|
|
{
|
|
interfaceID = networkInterface.ID;
|
|
IP = ip;
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|