Example #1
0
 public Status(string StatusURI, int seconds = 10, SystemPolling poll = SystemPolling.Sonos)
 {
     this.initialise();
     this.URI = StatusURI;
     this.timerSeconds = seconds;
     systembeingpolled = poll;
 }
Example #2
0
        // Allows the system being polled to be switched from Sonos to the Yamaha. Changes the URI being polled, and the enum that tracks which system is being polled.

        public void ChangeSystemBeingPolled(SystemPolling poll, string StatusURI)
        {
            if (timer != null)
            {
                this.timer.Stop();
                this.systembeingpolled = poll;
                this.URI = StatusURI;
                this.Timer_Tick(null, null);
                this.timer.Start();
            }        
        }