Beispiel #1
0
 public QueueController(
     IVoteableQueue<ISongStream> queue,
     ISongStreamPlayer streamPlayer)
 {
     _queue = queue;
     _streamPlayer = streamPlayer;
 }
 public QueueEventPublisher(
     IVoteableQueue<ISongStream> queue,
     ISongStreamPlayer streamPlayer,
     ISongPlayer songPlayer)
 {
     _queue = queue;
     _streamPlayer = streamPlayer;
     _songPlayer = songPlayer;
 }
 public AutoPlaylistService(
     IVoteableQueue<ISongStream> queue,
     ISongProvider songProvider,
     ISongStreamPlayer streamPlayer)
 {
     _queue = queue;
     _songProvider = songProvider;
     _streamPlayer = streamPlayer;
 }
 public SongStreamHandler(
     IVoteableQueue<ISongStream> queue,
     ISongStreamPlayer streamPlayer,
     ISongPlayer songPlayer)
 {
     _queue = queue;
     _streamPlayer = streamPlayer;
     _songPlayer = songPlayer;
 }
Beispiel #5
0
        public AppModule(
            IRegionManager regionManager,
            IVoteableQueue<ISongStream> queue,
            ISongPlayer songPlayer,
            ISongStreamPlayer streamPlayer)
        {
            _regionManager = regionManager;

            _queue = queue;
            _queue.ItemAdded += QueueOnItemAdded;

            _streamPlayer = streamPlayer;
            _streamPlayer.NextSong += StreamPlayerNextSongChanged;

            _songPlayer = songPlayer;
            _songPlayer.CurrentSongCompleted += SongPlayerOnCurrentSongCompleted;
        }