ln.skyscanner/entities/ConfiguredIP.cs

41 lines
889 B
C#
Raw Normal View History

2019-03-29 08:55:09 +01:00
// /**
// * 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;
2019-04-02 01:25:44 +02:00
using ln.types.net;
2019-08-29 13:14:52 +02:00
2019-03-29 08:55:09 +01:00
namespace ln.skyscanner.entities
{
2019-04-03 09:19:37 +02:00
public class ConfiguredIP
2019-03-29 08:55:09 +01:00
{
public readonly Guid ID = Guid.NewGuid();
2019-04-02 01:25:44 +02:00
public IPv4 IP { get; private set; }
public Network4 Network { get; private set; }
2019-03-29 08:55:09 +01:00
2019-04-03 09:19:37 +02:00
public ConfiguredIP()
2019-03-29 08:55:09 +01:00
{
}
2019-04-03 09:19:37 +02:00
public ConfiguredIP(IPv4 ip,Network4 network)
2019-03-29 08:55:09 +01:00
{
IP = ip;
2019-04-02 01:25:44 +02:00
Network = network;
2019-03-29 08:55:09 +01:00
}
2019-04-02 01:25:44 +02:00
public override string ToString()
{
return string.Format("[IntfIP ID={0} IP={1,18} Network={2}]", ID, IP, Network);
}
2019-03-29 08:55:09 +01:00
}
}