Ejemplo n.º 1
0
        public DefaultJukebox(
            IMediaPlayer mediaPlayer,
            IMusicLibraryFactory musicLibraryFactory,
            ILibraryRepository libraryRepository,
            ISongRepository songRepository,
            IAffinityTracker affinityTracker,
            IUserRepository userRepository,
            SongSpider spider)
        {
            _mediaPlayer = mediaPlayer;
            _musicLibraryFactory = musicLibraryFactory;
            _libraryRepository = libraryRepository;
            _songRepository = songRepository;
            _spider = spider;
            _affinityTracker = affinityTracker;
            _userRepository = userRepository;

            _mediaPlayer.SongFinished += _mediaPlayer_SongFinished;

            UpdateAllLibraries();
            MarkAllUsersAsAway();
        }
Ejemplo n.º 2
0
 public MostLovedUsers(IAffinityTracker affinityTracker)
 {
     _affinityTracker = affinityTracker;
 }
Ejemplo n.º 3
0
 public MostHatedArtists(IAffinityTracker affinityTracker)
 {
     _affinityTracker = affinityTracker;
 }