Skip to content

Downloader

Sasso edited this page Jan 30, 2021 · 3 revisions

Abstract class that provides the template method Download(). It is implemented by WebDownloader and MegaDownloader.

Constructor(window, url)

Constructor method.

Name Description
window XVLauncher.MainWindow
MainWindow instance where are placed GUI elements to be updated to show progress.
url System.String

Download

Template method that only handle exceptions and do some simples GUI changes. Real Download implementation is delegated to sublasses that must implement the abstract method Downloader.DownloadImplementation.

DownloadImplementation

Abstract method to be implemented by subclasses, that must provide download implementation, possibly asynchronously. It is called by the template method Downloader.Download

Clone this wiki locally