public AlbumController(
     IMembershipService membershipService,
     IImageAlbumService imageAlbumService,
     IAlbumMapper albumMapper)
 {
     this._membershipService = membershipService;
     this._imageAlbumService = imageAlbumService;
     this._albumMapper = albumMapper;
 }
예제 #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();
        }
예제 #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();
        }
예제 #4
0
 public AlbumManager()
 {
     mapper = new AlbumMapper();
 }
예제 #5
0
 public AlbumService(IHttpClientCaller <Album> albumApi, IAlbumMapper mapper, IValidator validator)
 {
     _albumApi  = albumApi;
     _mapper    = mapper;
     _validator = validator;
 }
예제 #6
0
파일: TrackMapper.cs 프로젝트: Jc54/PlayMe
 public TrackMapper(IAlbumMapper albumMapper, IArtistMapper artistMapper, IAlreadyQueuedHelper alreadyQueuedHelper)
 {
     this.artistMapper = artistMapper;
     this.albumMapper = albumMapper;
     this.alreadyQueuedHelper = alreadyQueuedHelper;
 }
예제 #7
0
 public void Setup()
 {
     _mapper = new AlbumMapper();
 }
예제 #8
0
 public TrackMapper(IAlbumMapper albumMapper, IArtistMapper artistMapper, IAlreadyQueuedHelper alreadyQueuedHelper)
 {
     this.artistMapper        = artistMapper;
     this.albumMapper         = albumMapper;
     this.alreadyQueuedHelper = alreadyQueuedHelper;
 }