public AlbumController( IMembershipService membershipService, IImageAlbumService imageAlbumService, IAlbumMapper albumMapper) { this._membershipService = membershipService; this._imageAlbumService = imageAlbumService; this._albumMapper = albumMapper; }
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(); }
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(); }
public AlbumManager() { mapper = new AlbumMapper(); }
public AlbumService(IHttpClientCaller <Album> albumApi, IAlbumMapper mapper, IValidator validator) { _albumApi = albumApi; _mapper = mapper; _validator = validator; }
public TrackMapper(IAlbumMapper albumMapper, IArtistMapper artistMapper, IAlreadyQueuedHelper alreadyQueuedHelper) { this.artistMapper = artistMapper; this.albumMapper = albumMapper; this.alreadyQueuedHelper = alreadyQueuedHelper; }
public void Setup() { _mapper = new AlbumMapper(); }