Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
 public Subscriber(TwitchChannel observable)
 {
     this.observable = observable;
 }