public MovieFileController(IBroadcastSignalRMessage signalRBroadcaster,
                            IMediaFileService mediaFileService,
                            IDeleteMediaFiles mediaFileDeletionService,
                            IMovieService movieService,
                            ICustomFormatCalculationService formatCalculator,
                            IUpgradableSpecification qualityUpgradableSpecification)
     : base(signalRBroadcaster)
 {
     _mediaFileService               = mediaFileService;
     _mediaFileDeletionService       = mediaFileDeletionService;
     _movieService                   = movieService;
     _formatCalculator               = formatCalculator;
     _qualityUpgradableSpecification = qualityUpgradableSpecification;
 }
Exemple #2
0
 public MovieFileModule(IBroadcastSignalRMessage signalRBroadcaster,
                        IMediaFileService mediaFileService,
                        IDeleteMediaFiles mediaFileDeletionService,
                        IMovieService movieService,
                        IUpgradableSpecification qualityUpgradableSpecification)
     : base(signalRBroadcaster)
 {
     _mediaFileService               = mediaFileService;
     _mediaFileDeletionService       = mediaFileDeletionService;
     _movieService                   = movieService;
     _qualityUpgradableSpecification = qualityUpgradableSpecification;
     GetResourceById                 = GetMovieFile;
     UpdateResource                  = SetQuality;
     DeleteResource                  = DeleteMovieFile;
 }
Exemple #3
0
 public BookFileController(IBroadcastSignalRMessage signalRBroadcaster,
                           IMediaFileService mediaFileService,
                           IDeleteMediaFiles mediaFileDeletionService,
                           IEBookTagService eBookTagService,
                           IAuthorService authorService,
                           IBookService bookService,
                           IUpgradableSpecification upgradableSpecification)
     : base(signalRBroadcaster)
 {
     _mediaFileService         = mediaFileService;
     _mediaFileDeletionService = mediaFileDeletionService;
     _eBookTagService          = eBookTagService;
     _authorService            = authorService;
     _bookService             = bookService;
     _upgradableSpecification = upgradableSpecification;
 }
Exemple #4
0
 public EpisodeFileModule(IBroadcastSignalRMessage signalRBroadcaster,
                          IMediaFileService mediaFileService,
                          IDeleteMediaFiles mediaFileDeletionService,
                          ISeriesService seriesService,
                          IUpgradableSpecification upgradableSpecification)
     : base(signalRBroadcaster)
 {
     _mediaFileService         = mediaFileService;
     _mediaFileDeletionService = mediaFileDeletionService;
     _seriesService            = seriesService;
     _upgradableSpecification  = upgradableSpecification;
     GetResourceById           = GetEpisodeFile;
     GetResourceAll            = GetEpisodeFiles;
     UpdateResource            = SetQuality;
     DeleteResource            = DeleteEpisodeFile;
 }
Exemple #5
0
        public EpisodeFileModule(IBroadcastSignalRMessage signalRBroadcaster,
                                 IMediaFileService mediaFileService,
                                 IDeleteMediaFiles mediaFileDeletionService,
                                 ISeriesService seriesService,
                                 IUpgradableSpecification upgradableSpecification)
            : base(signalRBroadcaster)
        {
            _mediaFileService         = mediaFileService;
            _mediaFileDeletionService = mediaFileDeletionService;
            _seriesService            = seriesService;
            _upgradableSpecification  = upgradableSpecification;

            GetResourceById = GetEpisodeFile;
            GetResourceAll  = GetEpisodeFiles;
            UpdateResource  = SetQuality;
            DeleteResource  = DeleteEpisodeFile;

            Put("/editor", episodeFiles => SetPropertiesEditor());
            Put("/bulk", episodeFiles => SetPropertiesBulk());
            Delete("/bulk", episodeFiles => DeleteEpisodeFiles());
        }
Exemple #6
0
        public MovieFileModule(IBroadcastSignalRMessage signalRBroadcaster,
                               IMediaFileService mediaFileService,
                               IDeleteMediaFiles mediaFileDeletionService,
                               IMovieService movieService,
                               ICustomFormatCalculationService formatCalculator,
                               IUpgradableSpecification qualityUpgradableSpecification)
            : base(signalRBroadcaster)
        {
            _mediaFileService               = mediaFileService;
            _mediaFileDeletionService       = mediaFileDeletionService;
            _movieService                   = movieService;
            _formatCalculator               = formatCalculator;
            _qualityUpgradableSpecification = qualityUpgradableSpecification;

            GetResourceById = GetMovieFile;
            GetResourceAll  = GetMovieFiles;
            UpdateResource  = SetMovieFile;
            DeleteResource  = DeleteMovieFile;

            Put("/editor", movieFiles => SetMovieFile());
            Delete("/bulk", movieFiles => DeleteMovieFiles());
        }
Exemple #7
0
        public TrackFileModule(IBroadcastSignalRMessage signalRBroadcaster,
                               IMediaFileService mediaFileService,
                               IDeleteMediaFiles mediaFileDeletionService,
                               IAudioTagService audioTagService,
                               IArtistService artistService,
                               IAlbumService albumService,
                               IUpgradableSpecification upgradableSpecification)
            : base(signalRBroadcaster)
        {
            _mediaFileService         = mediaFileService;
            _mediaFileDeletionService = mediaFileDeletionService;
            _audioTagService          = audioTagService;
            _artistService            = artistService;
            _albumService             = albumService;
            _upgradableSpecification  = upgradableSpecification;

            GetResourceById = GetTrackFile;
            GetResourceAll  = GetTrackFiles;
            UpdateResource  = SetQuality;
            DeleteResource  = DeleteTrackFile;

            Put("/editor", trackFiles => SetQuality());
            Delete("/bulk", trackFiles => DeleteTrackFiles());
        }