2019-12-06 23:12:34 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Net;
|
|
|
|
|
|
|
|
|
|
namespace Unosquare.RaspberryIO.Computer {
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a Network Adapter.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class NetworkAdapterInfo {
|
2019-12-04 18:57:18 +01:00
|
|
|
|
/// <summary>
|
2019-12-06 23:12:34 +01:00
|
|
|
|
/// Gets the name.
|
2019-12-04 18:57:18 +01:00
|
|
|
|
/// </summary>
|
2019-12-06 23:12:34 +01:00
|
|
|
|
public String? Name {
|
|
|
|
|
get; internal set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the IP V4 address.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IPAddress? IPv4 {
|
|
|
|
|
get; internal set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the IP V6 address.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IPAddress? IPv6 {
|
|
|
|
|
get; internal set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the name of the access point.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public String? AccessPointName {
|
|
|
|
|
get; internal set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the MAC (Physical) address.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public String? MacAddress {
|
|
|
|
|
get; internal set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a value indicating whether this instance is wireless.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Boolean IsWireless {
|
|
|
|
|
get; internal set;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-12-04 18:57:18 +01:00
|
|
|
|
}
|