using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using SoundBeam.Annotations; namespace SoundBeam { public class DiscoveredServer : INotifyPropertyChanged { public string Hostname { get; set; } public short Port { get; set; } public DiscoveredServer(string hostname, short port) { Hostname = hostname; Port = port; } public event PropertyChangedEventHandler PropertyChanged; [NotifyPropertyChangedInvocator] protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } } }