using System.Net.NetworkInformation; namespace MediaBrowser.Model.System { /// /// Provides the MAC address and port for wake-on-LAN functionality. /// public class WakeOnLanInfo { /// /// Initializes a new instance of the class. /// /// The MAC address. public WakeOnLanInfo(PhysicalAddress macAddress) : this(macAddress.ToString()) { } /// /// Initializes a new instance of the class. /// /// The MAC address. public WakeOnLanInfo(string macAddress) : this() { MacAddress = macAddress; } /// /// Initializes a new instance of the class. /// public WakeOnLanInfo() { Port = 9; } /// /// Gets the MAC address of the device. /// /// The MAC address. public string? MacAddress { get; } /// /// Gets or sets the wake-on-LAN port. /// /// The wake-on-LAN port. public int Port { get; set; } } }