AddFileToDownloads class final
AddFileToDownloads (addFileToDownloads) - TDLib function
Adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates.. If message database is used, the list of file downloads is persistent across application restarts. The downloading is independent of download using downloadFile, i.e. it continues if downloadFile is canceled or is used to download a part of the file.
- fileId: Identifier of the file to download.
- chatId: Chat identifier of the message with the file.
- messageId: Message identifier.
- priority: 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.
File is returned on completion.
- Inheritance
-
- Object
- TdFunction
- AddFileToDownloads
Constructors
- AddFileToDownloads({required int fileId, required int chatId, required int messageId, required int priority})
-
AddFileToDownloads (addFileToDownloads) - TDLib function
const
Properties
- chatId → int
-
Chat identifier of the message with the file
final
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- fileId → int
-
Identifier of the file to download
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- messageId → int
-
Message identifier
final
- priority → int
-
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
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{int? fileId, int? chatId, int? messageId, int? priority}) → AddFileToDownloads - Copy model with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type