コード例 #1
0
ファイル: DefaultJukebox.cs プロジェクト: djeebus/MusicHub
        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();
        }
コード例 #2
0
ファイル: MostLovedUsers.cs プロジェクト: djeebus/MusicHub
 public MostLovedUsers(IAffinityTracker affinityTracker)
 {
     _affinityTracker = affinityTracker;
 }
コード例 #3
0
ファイル: MostHatedArtists.cs プロジェクト: djeebus/MusicHub
 public MostHatedArtists(IAffinityTracker affinityTracker)
 {
     _affinityTracker = affinityTracker;
 }