DownloadFile class
Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates
- Inheritance
-
- Object
- Td
- TdFunction
- DownloadFile
Constructors
Properties
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- file_id ↔ int32?
-
Identifier of the file to download
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- limit ↔ int53?
-
Number of bytes which need to be downloaded starting from the "offset" position before the download will automatically be canceled; use 0 to download without a limit
getter/setter pair
- offset ↔ int53?
-
The starting position from which the file needs to be downloaded
getter/setter pair
- priority ↔ int32?
-
Priority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of two files are equal, then the last one for which downloadFile/addFileToDownloads was called will be downloaded first
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- synchronous ↔ Bool?
-
Pass true to return response only after the file download has succeeded, has failed, has been canceled, or a new downloadFile request with different offset/limit parameters was sent; pass false to return file state immediately, just after the download has been started
getter/setter pair
- tdReturnType → String
-
The return type as String for this function.
Currently not used.
no setteroverride
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited