static void Main(string[] args) { TwitchChannel channel = new TwitchChannel(); Subscriber s1 = new Subscriber(channel); Subscriber s2 = new Subscriber(channel); Subscriber s3 = new Subscriber(channel); channel.Attach(s1); channel.Attach(s2); channel.Attach(s3); channel.AddNewStream("Playing Warzone\n"); channel.AddNewStream("Playing Fortnite\n"); }
public Subscriber(TwitchChannel observable) { this.observable = observable; }