Package ai.nexconn.chat.message.model
Class DownloadInfo
-
- All Implemented Interfaces:
public final class DownloadInfoMedia file download information.
Contains download progress details for resumable file downloads, including the file path, download URL, file size, and current download status.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringtagprivate final StringfilePathprivate final Stringurlprivate final Longlengthprivate final BooleanisDownloadingprivate final BooleanisFinishedprivate final LongcurrentLengthprivate final Integerprogress
-
Constructor Summary
Constructors Constructor Description DownloadInfo(String tag, String filePath, String url, Long length, Boolean isDownloading, Boolean isFinished, Long currentLength, Integer progress)
-
Method Summary
Modifier and Type Method Description final StringgetTag()final StringgetFilePath()final StringgetUrl()final LonggetLength()final BooleanisDownloading()final BooleanisFinished()final LonggetCurrentLength()final IntegergetProgress()-
-
Constructor Detail
-
DownloadInfo
DownloadInfo(String tag, String filePath, String url, Long length, Boolean isDownloading, Boolean isFinished, Long currentLength, Integer progress)
- Parameters:
tag- unique identifier for the filefilePath- local file path where the download is storedurl- the download URLlength- total file size in bytesisDownloading- whether the file is currently being downloadedisFinished- whether the download has completedcurrentLength- number of bytes downloaded so farprogress- current download progress (0–100)
-
-
Method Detail
-
getTag
final String getTag()
-
getFilePath
final String getFilePath()
-
getUrl
final String getUrl()
-
getLength
final Long getLength()
-
isDownloading
final Boolean isDownloading()
-
isFinished
final Boolean isFinished()
-
getCurrentLength
final Long getCurrentLength()
-
getProgress
final Integer getProgress()
-
-
-
-