/// <summary>
 /// Crot:
 /// </summary>
 /// <param name="MusicFileService">Instance of the MusicFileService</param>
 /// <param name="LastFMService">Instance of the LastFMService</param>
 /// <param name="AlbumRepository">Instance of the AlbumRepository</param>
 /// <param name="AlbumFactory">Instance of the AlbumFactory</param>
 /// <param name="TrackFactory">Instance of the TrackFactory</param>
 /// <param name="ArtistFactory">Instance of the ArtistFactory</param>
 /// <param name="GenreFactory">Instance of the GenreFactory</param>
 public MusicFileDataService(IMusicFileService MusicFileService,
                             ILastFMService LastFMService,
                             IAlbumRepository AlbumRepository, 
                             AbstractFactory<Album> AlbumFactory,
                             AbstractFactory<Track> TrackFactory,
                             AbstractFactory<Artist> ArtistFactory,
                             AbstractFactory<Genre> GenreFactory)
 {
     if (MusicFileService == null)
         throw new ArgumentNullException("MusicFileService", "No valid MusicFile service supplied");
     _musicFileService = MusicFileService;
     if (LastFMService == null)
         throw new ArgumentNullException("LastFMService", "No valid LastFM service supplied");
     _lastFMService = LastFMService;
     if (AlbumRepository == null)
         throw new ArgumentNullException("AlbumRepository", "No valid Album Repository supplied");
     _albumRepository = AlbumRepository;
     if (AlbumFactory == null)
         throw new ArgumentNullException("AlbumFactory", "No valid Album Factory supplied");
     _albumFactory = AlbumFactory;
     if (TrackFactory == null)
         throw new ArgumentNullException("TrackFactory", "No valid Track Factory supplied");
     _trackFactory = TrackFactory;
     if (ArtistFactory == null)
         throw new ArgumentNullException("ArtistFactory", "No valid Artist Factory supplied");
     _artistFactory = ArtistFactory;
     if (GenreFactory == null)
         throw new ArgumentNullException("GenreFactory", "No valid Genre Factory supplied");
     _genreFactory = GenreFactory;
 }
 /// <summary>
 /// ctor;
 /// </summary>
 /// <param name="AlbumRepository">Instance of the AlbumRepository</param>
 /// <param name="AlbumFactory">Instance of the AlbumFactory</param>
 /// <param name="ImageFactory">Instance of the ImageFactore</param>
 /// <param name="TrackFactory">Instance of the TrackFactory</param>
 /// <param name="ArtistFactory">Instance of the ArtistFactory</param>
 /// <param name="GenreFactory">Instance of thenGenreFactory</param>
 /// <param name="WikiFactory">Instance of the WikiFactory</param>
 /// <param name="LastFMService">Instance of the LastFMService</param>
 public LastFMModelDataService(IAlbumRepository AlbumRepository, 
     AbstractFactory<Album> AlbumFactory, 
     AbstractFactory<Image> ImageFactory,
     AbstractFactory<Track> TrackFactory,
     AbstractFactory<Artist> ArtistFactory,
     AbstractFactory<Genre> GenreFactory,
     AbstractFactory<Wiki> WikiFactory,
     ILastFMService LastFMService)
 {
     if (AlbumRepository == null)
         throw new ArgumentNullException("AlbumRepository", "No valid Album Repository supplied");
     _albumRepository = AlbumRepository;
     if (AlbumFactory == null)
         throw new ArgumentNullException("AlbumFactory", "No valid Album factory supplied");
     _albumFactory = AlbumFactory;
     if (ImageFactory == null)
         throw new ArgumentNullException("ImageFactory", "No valid Image factory supplied");
     _imageFactory = ImageFactory;
     if (TrackFactory == null)
         throw new ArgumentNullException("TrackFactory", "No valid Track factory supplied");
     _trackFactory = TrackFactory;
     if (ImageFactory == null)
         throw new ArgumentNullException("ArtistFactory", "No valid Artist factory supplied");
     _artistFactory = ArtistFactory;
     if (ImageFactory == null)
         throw new ArgumentNullException("GenreFactory", "No valid Genre factory supplied");
     _genreFactory = GenreFactory;
     if (WikiFactory == null)
         throw new ArgumentNullException("WikiFactory", "No valid Wiki factory supplied");
     _wikiFactory = WikiFactory;
     if (LastFMService == null)
         throw new ArgumentNullException("LastFMService", "No valid Service for LastFM supplied");
     _lastFMService = LastFMService;
 }
 public ScoreService(ILastFMService lastFMService)
 {
     _lastFMService = lastFMService;
     _excludedTags  = new string[]
     {
         "seen live"
     };
 }
Exemple #4
0
 public RemoteController(ISettingsService service, IYamahaService yamahaService, IPanodraService pandoraService, ISmartHouseService smartHouseService, IMPDService mpdService, ITVService tvService, ILastFMService lastFMService)
     : base(service)
 {
     YamahaService     = yamahaService;
     PandoraService    = pandoraService;
     SmartHouseService = smartHouseService;
     MpdService        = mpdService;
     TVService         = tvService;
     LastFMService     = lastFMService;
 }
Exemple #5
0
 public RemoteController(ISettingsService service, IYamahaService yamahaService, IPlayerFactoryService playerService, ISmartHouseService smartHouseService, IMPDService mpdService, ITVService tvService, ILastFMService lastFMService, IRabbitMqService rabbitMqService)
     : base(service, rabbitMqService)
 {
     YamahaService     = yamahaService;
     PlayerService     = playerService;
     SmartHouseService = smartHouseService;
     MpdService        = mpdService;
     TVService         = tvService;
     LastFMService     = lastFMService;
 }
Exemple #6
0
 public PlayerController(ISettingsService service, IPlayerFactoryService pandoraService, ILastFMService lastFMService, IRabbitMqService rabbitMqService) : base(service, rabbitMqService)
 {
     _playerService = pandoraService;
     _lastFmService = lastFMService;
 }
Exemple #7
0
 public DeezerController(ISettingsService settingsService, ILastFMService lastFMService, IRabbitMqService rabbitMqService) : base(settingsService, rabbitMqService)
 {
     _lastFMService        = lastFMService;
     _playerFactoryService = new DeezerService();
 }
 public LastFMController(ISettingsService service, ILastFMService lastFmService)
     : base(service)
 {
     _lastFmService = lastFmService;
 }
Exemple #9
0
 public StubScoreService(ILastFMService lastFMService)
 {
 }
Exemple #10
0
 public PandoraController(ISettingsService service, IPanodraService pandoraService, ILastFMService lastFMService) : base(service)
 {
     PandoraService = pandoraService;
     LastFMService  = lastFMService;
 }