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