public static class TdApi.File extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
expectedSize
Approximate file size in bytes in case the exact file size is unknown.
|
int |
id
Unique file identifier.
|
TdApi.LocalFile |
local
Information about the local copy of the file.
|
TdApi.RemoteFile |
remote
Information about the remote copy of the file.
|
int |
size
File size, in bytes; 0 if unknown.
|
Constructor and Description |
---|
File()
Represents a file.
|
File(int id,
int size,
int expectedSize,
TdApi.LocalFile local,
TdApi.RemoteFile remote)
Represents a file.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public int id
public int size
public int expectedSize
public TdApi.LocalFile local
public TdApi.RemoteFile remote
public static final int CONSTRUCTOR
public File()
public File(int id, int size, int expectedSize, TdApi.LocalFile local, TdApi.RemoteFile remote)
id
- Unique file identifier.size
- File size, in bytes; 0 if unknown.expectedSize
- Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress.local
- Information about the local copy of the file.remote
- Information about the remote copy of the file.public int getConstructor()
getConstructor
in class TdApi.Object