public GetTracksByPlaylistQueryHandler(
     IRepository <Entities.Track> repository,
     ITrackMapper trackMapper
     )
 {
     this._repository  = repository;
     this._trackMapper = trackMapper;
 }
Exemplo n.º 2
0
        public SpotifyMusicProvider(ILogger logger,IBufferedPlayer player, ITrackMapper trackMapper, IAlbumMapper albumMapper, ISpotifySettings spotifySettings)
        {
            this.spotifySettings = spotifySettings;
            this.albumMapper = albumMapper;
            this.trackMapper = trackMapper;
            this.logger = logger;
            this.player = player;

            logger.Debug("Creating Spotify session");
            session = Spotify.CreateSession(spotifySettings.ApplicationKey, "c:\\temp", "c:\\temp", "Spotifire");
            //session.VolumeNormalization = true;              
            session.MusicDeliver += session_MusicDelivered;
            session.EndOfTrack += session_EndOfTrack;
            session.ConnectionError += session_ConnectionError;
            Login();
        }
Exemplo n.º 3
0
        public SpotifyMusicProvider(ILogger logger, IBufferedPlayer player, ITrackMapper trackMapper, IAlbumMapper albumMapper, ISpotifySettings spotifySettings)
        {
            this.spotifySettings = spotifySettings;
            this.albumMapper     = albumMapper;
            this.trackMapper     = trackMapper;
            this.logger          = logger;
            this.player          = player;

            logger.Debug("Creating Spotify session");
            session = Spotify.CreateSession(spotifySettings.ApplicationKey, "c:\\temp", "c:\\temp", "Spotifire");
            //session.VolumeNormalization = true;
            session.MusicDeliver    += session_MusicDelivered;
            session.EndOfTrack      += session_EndOfTrack;
            session.ConnectionError += session_ConnectionError;
            Login();
        }