public TaskController(ILogger logger, IMediaFactory mediaFactory, IVideoPlayer videoPlayer, SpiderFactory spiderFactory, IMetadataController metadataController, IMarqueeRepository marqueeRepository, IMetadataRepository mediaItemRepository)
        {
            if (logger == null)
                throw new ArgumentNullException("logger");
            if (mediaFactory == null)
                throw new ArgumentNullException("mediaFactory");
            if (videoPlayer == null)
                throw new ArgumentNullException("videoPlayer");
            if (spiderFactory == null)
                throw new ArgumentNullException("spiderFactory");
            if (metadataController == null)
                throw new ArgumentNullException("metadataController");
            if (marqueeRepository == null)
                throw new ArgumentNullException("marqueeRepository");
            if (mediaItemRepository == null)
                throw new ArgumentNullException("mediaItemRepository");

            this.logger = logger;
            this.mediaFactory = mediaFactory;
            this.videoPlayer = videoPlayer;
            this.spiderFactory = spiderFactory;
            this.metadataController = metadataController;
            this.marqueeRepository = marqueeRepository;
            this.mediaItemRepository = mediaItemRepository;
            this.audioStreamFactory = new AudioStreamFactory();
        }
        public void Initialize(ILogger logger, ISecurityContext securityContext, IMediaFactory mediaFactory, IMetadataController mediaItemController, ITaskController taskController, ITagController tagController, IVideoPlayer videoPlayer)
        {
            if (logger == null)
                throw new ArgumentNullException("logger");
            if (securityContext == null)
                throw new ArgumentNullException("securityContext");
            if (mediaFactory == null)
                throw new ArgumentNullException("mediaFactory");
            if (mediaItemController == null)
                throw new ArgumentNullException("mediaItemController");
            if (taskController == null)
                throw new ArgumentNullException("taskController");
            if (tagController == null)
                throw new ArgumentNullException("tagController");
            if (videoPlayer == null)
                throw new ArgumentNullException("videoPlayer");

            this.logger = logger;
            this.securityContext = securityContext;
            this.mediaFactory = mediaFactory;
            this.taskController = taskController;
            this.mediaItemController = mediaItemController;
            this.tagController = tagController;
            this.videoPlayer = videoPlayer;
        }
        //public PlaylistViewModel(IMediaItemController controller, IPlaylist playlist, IEnumerable<IPlaylistItemViewModel> playlistItems)
        //    : this(controller, playlist, playlistItems, "pack://application:,,,/Images/play-simple.png")
        //{
        //}

        public PlaylistViewModel(IMetadataController controller, IPlaylist playlist, IEnumerable<IPlaylistItemViewModel> playlistItems)
            : base(controller, playlist, "PLAYLIST", GetIcon(playlist))
        {
            if (playlistItems == null)
                throw new ArgumentNullException("playlistItems");

            this.playlistItems = new ObservableCollection<IPlaylistItemViewModel>(playlistItems);
            currentPlaylistItem = this.playlistItems.FirstOrDefault();
        }
        protected MediaItemViewModel(IMetadataController controller, IMetadata item, string type, object icon)
        {
            if (controller == null)
                throw new ArgumentNullException("controller");
            if (item == null)
                throw new ArgumentNullException("item");
            if (type == null)
                throw new ArgumentNullException("type");
            if (icon == null)
                throw new ArgumentNullException("icon");

            this.controller = controller;
            this.item = item;
            this.type = type;
            this.icon = icon;
        }
 public ClipViewModel(IMetadataController controller, IClip clip)
     : base(controller, clip, GetType(clip), GetIcon(clip))
 {
 }
 public PlaylistItemViewModel(IMetadataController controller, IPlaylistItem playlistItem)
     : base(controller, playlistItem, "PLAYLIST ITEM", "pack://application:,,,/Images/play-simple.png")
 {
 }
 public TrackViewModel(IMetadataController controller, ITrack track)
     : base(controller, track, "TRACK", GetIcon(track))
 {
 }
 /// <summary>
 /// Creates a new Parse SDK command runner.
 /// </summary>
 /// <param name="webClient">The <see cref="IWebClient"/> implementation instance to use.</param>
 /// <param name="installationController">The <see cref="IParseInstallationController"/> implementation instance to use.</param>
 public ParseCommandRunner(IWebClient webClient, IParseInstallationController installationController, IMetadataController metadataController, IServerConnectionData serverConnectionData, Lazy <IParseUserController> userController)
 {
     WebClient = webClient;
     InstallationController = installationController;
     MetadataController     = metadataController;
     ServerConnectionData   = serverConnectionData;
     UserController         = userController;
 }
Exemple #9
0
        public void Initialize(ILogger logger, ISecurityContext securityContext, IMediaFactory mediaFactory, IMetadataController mediaItemController, ITaskController taskController, ITagController tagController, IVideoPlayer videoPlayer)
        {
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }
            if (securityContext == null)
            {
                throw new ArgumentNullException("securityContext");
            }
            if (mediaFactory == null)
            {
                throw new ArgumentNullException("mediaFactory");
            }
            if (mediaItemController == null)
            {
                throw new ArgumentNullException("mediaItemController");
            }
            if (taskController == null)
            {
                throw new ArgumentNullException("taskController");
            }
            if (tagController == null)
            {
                throw new ArgumentNullException("tagController");
            }
            if (videoPlayer == null)
            {
                throw new ArgumentNullException("videoPlayer");
            }

            this.logger              = logger;
            this.securityContext     = securityContext;
            this.mediaFactory        = mediaFactory;
            this.taskController      = taskController;
            this.mediaItemController = mediaItemController;
            this.tagController       = tagController;
            this.videoPlayer         = videoPlayer;
        }
Exemple #10
0
 public TrackViewModel(IMetadataController controller, ITrack track)
     : base(controller, track, "TRACK", GetIcon(track))
 {
 }