forked from RemoteTechnologiesGroup/RemoteTech
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetworkLink.cs
More file actions
31 lines (27 loc) · 822 Bytes
/
Copy pathNetworkLink.cs
File metadata and controls
31 lines (27 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
namespace RemoteTech.SimpleTypes
{
public class NetworkLink<T> : IEquatable<NetworkLink<T>>
{
public readonly T Target;
public readonly List<IAntenna> Interfaces;
public readonly LinkType Port;
public NetworkLink(T sat, List<IAntenna> ant, LinkType port)
{
Target = sat;
Interfaces = ant;
Port = port;
}
public bool Equals(NetworkLink<T> o)
{
if (o == null) return false;
if (!Target.Equals(o.Target)) return false;
return true;
}
public override string ToString()
{
return String.Format("NetworkLink(T: {0}, I: {1}, P: {2})", Target, Interfaces.ToDebugString(), Port);
}
}
}