예제 #1
0
 public void Update(NewsItem item)
 {
     Console.WriteLine($"Radio: {item.NewsText}");
 }
예제 #2
0
 public void NotifyAllMedia(NewsItem news)
 {
     Observers.ForEach(a => a.Update(news));
 }
예제 #3
0
 public void Update(NewsItem item)
 {
     Console.WriteLine($"Social Media: {item.NewsText}");
 }