Exemple #1
0
        public void RemoveAction(int id, bool removeFromClient = true, bool blacklist = false, bool skipReDownload = false)
        {
            var trackedDownload = Remove(id, removeFromClient, blacklist, skipReDownload);

            if (trackedDownload != null)
            {
                _trackedDownloadService.StopTracking(trackedDownload.DownloadItem.DownloadId);
            }
        }
Exemple #2
0
        private object Remove(int id)
        {
            var removeFromClient = Request.GetBooleanQueryParameter("removeFromClient", true);
            var blacklist        = Request.GetBooleanQueryParameter("blacklist");

            var trackedDownload = Remove(id, removeFromClient, blacklist);

            if (trackedDownload != null)
            {
                _trackedDownloadService.StopTracking(trackedDownload.DownloadItem.DownloadId);
            }

            return(new object());
        }
Exemple #3
0
        private object Remove(int id)
        {
            var blacklist      = Request.GetBooleanQueryParameter("blacklist");
            var skipReDownload = Request.GetBooleanQueryParameter("skipredownload");

            var trackedDownload = Remove(id, blacklist, skipReDownload);

            if (trackedDownload != null)
            {
                _trackedDownloadService.StopTracking(trackedDownload.DownloadItem.DownloadId);
            }

            return(new object());
        }
Exemple #4
0
        private object Remove(int id)
        {
            var removeFromClient = Request.GetBooleanQueryParameter("removeFromClient", true);

            // blacklist maintained for backwards compatability, UI uses blocklist.
            var blocklist = Request.GetBooleanQueryParameter("blocklist") ? Request.GetBooleanQueryParameter("blocklist") : Request.GetBooleanQueryParameter("blacklist");

            var trackedDownload = Remove(id, removeFromClient, blocklist);

            if (trackedDownload != null)
            {
                _trackedDownloadService.StopTracking(trackedDownload.DownloadItem.DownloadId);
            }

            return(new object());
        }