Exemplo n.º 1
0
 public SONOSListener(Configuration incomingConfiguration)
 {
     myConfiguration = incomingConfiguration;
     shutdown = false;
     ZonesUpdater = new SONOSZonesUpdater ();
     NowPlaying = null;
     NowPlayingBefore = null;
     TManager = new TransitionManager (incomingConfiguration);
 }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            Console.WriteLine ("SONOS Auto Bookmarker Tool");
            Console.WriteLine ("(C) Daniel Kirstenpfad 2014 - http://www.technology-ninja.com");
            Console.WriteLine ();

            Configuration myConfiguration = new Configuration ("configuration.json");

            #region Start-Up Main-Event Loop
            Console.WriteLine("Starting SONOS Event listener...");
            SONOSListener _Thread = new SONOSListener(myConfiguration);
            Thread SONOSListenerThread = new Thread(new ThreadStart(_Thread.Run));
            SONOSListenerThread.Start();
            #endregion
        }
 public TransitionManager(Configuration incomingConfiguration)
 {
     myConfiguration = incomingConfiguration;
 }