Inherits td::td_api::Object.
|
|
int32 | id_ |
| | Unique file identifier.
|
| |
|
int53 | size_ |
| | File size, in bytes; 0 if unknown.
|
| |
|
int53 | expected_size_ |
| | Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress.
|
| |
|
object_ptr< localFile > | local_ |
| | Information about the local copy of the file.
|
| |
|
object_ptr< remoteFile > | remote_ |
| | Information about the remote copy of the file.
|
| |
|
|
static const std::int32_t | ID = 1263291956 |
| | Identifier uniquely determining a type of the object.
|
| |
◆ file() [1/2]
| td::td_api::file::file |
( |
| ) |
|
◆ file() [2/2]
Represents a file.
- Parameters
-
| [in] | id_ | Unique file identifier. |
| [in] | size_ | File size, in bytes; 0 if unknown. |
| [in] | expected_size_ | Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress. |
| [in] | local_ | Information about the local copy of the file. |
| [in] | remote_ | Information about the remote copy of the file. |
◆ get_id()
| std::int32_t td::td_api::file::get_id |
( |
| ) |
const |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
- Returns
- this->ID.
Implements td::TlObject.
◆ store()
| void td::td_api::file::store |
( |
TlStorerToString & |
s, |
|
|
const char * |
field_name |
|
) |
| const |
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
- Parameters
-
| [in] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
The documentation for this class was generated from the following file: