Class DownloadInfo
java.lang.Object
me.hsgamer.hscore.downloader.core.object.DownloadInfo
The download information
-
Constructor Summary
ConstructorDescriptionDownloadInfo
(String name, String fileName, String version, String directLink, Map<String, Object> data, Downloader downloader) Create a new download informationDownloadInfo
(String name, String fileName, String version, String directLink, Downloader downloader) Create a new download information -
Method Summary
-
Constructor Details
-
DownloadInfo
public DownloadInfo(String name, String fileName, String version, String directLink, Map<String, Object> data, Downloader downloader) Create a new download information- Parameters:
name
- the namefileName
- the file nameversion
- the versiondirectLink
- the direct linkdata
- the datadownloader
- the downloader
-
DownloadInfo
public DownloadInfo(String name, String fileName, String version, String directLink, Downloader downloader) Create a new download information- Parameters:
name
- the namefileName
- the file nameversion
- the versiondirectLink
- the direct linkdownloader
- the downloader
-
-
Method Details
-
getName
Get the name- Returns:
- the name
-
getVersion
Get the version- Returns:
- the version
-
getFileName
Get the file name- Returns:
- the file name
-
getDirectLink
Get the direct link- Returns:
- the direct link
-
getData
Get the data- Returns:
- the data
-
isDownloading
public boolean isDownloading()Check if the download is running- Returns:
- true if the download is running
-
download
Download the file. If the download is running, it will return the current download task.
-