public static class TdApi.LocalFile extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
boolean |
canBeDeleted
True, if the file can be deleted.
|
boolean |
canBeDownloaded
True, if it is possible to download or generate the file.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
downloadedPrefixSize
If isDownloadingCompleted is false, then only some prefix of the file starting from downloadOffset is ready to be read. downloadedPrefixSize is the size of that prefix in bytes.
|
int |
downloadedSize
Total downloaded file size, in bytes.
|
int |
downloadOffset
Download will be started from this offset. downloadedPrefixSize is calculated from this offset.
|
boolean |
isDownloadingActive
True, if the file is currently being downloaded (or a local copy is being generated by some other means).
|
boolean |
isDownloadingCompleted
True, if the local copy is fully available.
|
java.lang.String |
path
Local path to the locally available file part; may be empty.
|
Constructor and Description |
---|
LocalFile()
Represents a local file.
|
LocalFile(java.lang.String path,
boolean canBeDownloaded,
boolean canBeDeleted,
boolean isDownloadingActive,
boolean isDownloadingCompleted,
int downloadOffset,
int downloadedPrefixSize,
int downloadedSize)
Represents a local file.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String path
public boolean canBeDownloaded
public boolean canBeDeleted
public boolean isDownloadingActive
public boolean isDownloadingCompleted
public int downloadOffset
public int downloadedPrefixSize
public int downloadedSize
public static final int CONSTRUCTOR
public LocalFile()
public LocalFile(java.lang.String path, boolean canBeDownloaded, boolean canBeDeleted, boolean isDownloadingActive, boolean isDownloadingCompleted, int downloadOffset, int downloadedPrefixSize, int downloadedSize)
path
- Local path to the locally available file part; may be empty.canBeDownloaded
- True, if it is possible to download or generate the file.canBeDeleted
- True, if the file can be deleted.isDownloadingActive
- True, if the file is currently being downloaded (or a local copy is being generated by some other means).isDownloadingCompleted
- True, if the local copy is fully available.downloadOffset
- Download will be started from this offset. downloadedPrefixSize is calculated from this offset.downloadedPrefixSize
- If isDownloadingCompleted is false, then only some prefix of the file starting from downloadOffset is ready to be read. downloadedPrefixSize is the size of that prefix in bytes.downloadedSize
- Total downloaded file size, in bytes. Can be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage.public int getConstructor()
getConstructor
in class TdApi.Object