Exemplo n.º 1
0
 public UserService(IRoadieSettings configuration,
                    IHttpEncoder httpEncoder,
                    IHttpContext httpContext,
                    IRoadieDbContext context,
                    ICacheManager cacheManager,
                    ILogger <ArtistService> logger,
                    UserManager <Library.Identity.User> userManager,
                    ILastFmHelper lastFmHelper
                    )
     : base(configuration, httpEncoder, context, cacheManager, logger, httpContext)
 {
     UserManager  = userManager;
     LastFmHelper = lastFmHelper;
 }
Exemplo n.º 2
0
        public ScrobbleHandler(IRoadieSettings configuration, ILogger <ScrobbleHandler> logger, IRoadieDbContext dbContext,
                               ICacheManager cacheManager, IHttpEncoder httpEncoder, IHttpContext httpContext,
                               ILastFmHelper lastFmHelper, IRoadieScrobbler roadieScrobbler, ILastFMScrobbler lastFMScrobbler)
        {
            Logger        = logger;
            Configuration = configuration;
            DbContext     = dbContext;
            HttpEncoder   = httpEncoder;
            HttpContext   = httpContext;
            var scrobblers = new List <IScrobblerIntegration>
            {
                roadieScrobbler
            };

            if (configuration.Integrations.LastFmProviderEnabled)
            {
                scrobblers.Add(lastFMScrobbler);
            }
            Scrobblers = scrobblers;
        }
Exemplo n.º 3
0
        public AudioMetaDataHelper(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context,
                                   IMusicBrainzProvider musicBrainzHelper, ILastFmHelper lastFmHelper, ICacheManager cacheManager,
                                   ILogger <AudioMetaDataHelper> logger, IArtistLookupEngine artistLookupEngine, IFileNameHelper filenameHelper,
                                   IID3TagsHelper id3TagsHelper)
        {
            Configuration  = configuration;
            HttpEncoder    = httpEncoder;
            CacheManager   = cacheManager;
            Logger         = logger;
            FileNameHelper = filenameHelper;
            ID3TagsHelper  = id3TagsHelper;

            MusicBrainzProvider = musicBrainzHelper;
            LastFmHelper        = lastFmHelper;

            ArtistLookupEngine = artistLookupEngine;

            DoParseFromFileName    = configuration.Processing.DoParseFromFileName;
            DoParseFromDiscogsDB   = configuration.Processing.DoParseFromDiscogsDB;
            DoParseFromMusicBrainz = configuration.Processing.DoParseFromMusicBrainz;
            DoParseFromLastFM      = configuration.Processing.DoParseFromLastFM;
        }
Exemplo n.º 4
0
        public AudioMetaDataHelper(IRoadieSettings configuration, IHttpEncoder httpEncoder, IRoadieDbContext context, IMusicBrainzProvider musicBrainzHelper,
                                   ILastFmHelper lastFmHelper, ICacheManager cacheManager, ILogger logger, IArtistLookupEngine artistLookupEngine,
                                   IImageFactory imageFactory, IFileNameHelper filenameHelper, IID3TagsHelper id3TagsHelper)
        {
            this.Configuration  = configuration;
            this.HttpEncoder    = httpEncoder;
            this.CacheManager   = cacheManager;
            this.Logger         = logger;
            this.ImageFactory   = ImageFactory;
            this.FileNameHelper = filenameHelper;
            this.ID3TagsHelper  = id3TagsHelper;

            this.MusicBrainzProvider = musicBrainzHelper;
            this.LastFmHelper        = lastFmHelper;

            this.ArtistLookupEngine = artistLookupEngine;

            this.DoParseFromFileName = configuration.Processing.DoParseFromFileName;
            this.DoParseFromDiscogsDBFindingTrackForArtist = configuration.Processing.DoParseFromDiscogsDBFindingTrackForArtist;
            this.DoParseFromDiscogsDB   = configuration.Processing.DoParseFromDiscogsDB;
            this.DoParseFromMusicBrainz = configuration.Processing.DoParseFromMusicBrainz;
            this.DoParseFromLastFM      = configuration.Processing.DoParseFromLastFM;
        }
Exemplo n.º 5
0
 public LastFMScrobbler(IRoadieSettings configuration, ILogger <LastFMScrobbler> logger, IRoadieDbContext dbContext,
                        ICacheManager cacheManager, ILastFmHelper lastFmHelper, IHttpContext httpContext)
     : base(configuration, logger, dbContext, cacheManager, httpContext)
 {
     LastFmHelper = lastFmHelper;
 }