public static class TdApi.File extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
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.
|
long |
size
File size, in bytes; 0 if unknown.
|
| Constructor and Description |
|---|
File()
Represents a file.
|
File(int id,
long size,
long expectedSize,
TdApi.LocalFile local,
TdApi.RemoteFile remote)
Represents a file.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic int id
public long size
public long expectedSize
public TdApi.LocalFile local
public TdApi.RemoteFile remote
public static final int CONSTRUCTOR
public File()
public File(int id,
long size,
long 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()
TdApi.ObjectgetConstructor in class TdApi.Object