- Enclosing class:
- TdApi
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 from download using
downloadFile, i.e. it continues if
downloadFile is canceled or is used
to download a part of the file.
Returns
File
-
Field Summary
Modifier and TypeFieldDescriptionlong
Chat identifier of the message with the file.static final int
int
Identifier of the file to download.long
Message identifier.int
Priority of the download (1-32). -
Constructor Summary
ConstructorDescriptionAdds a file from a message to the list of file downloads.AddFileToDownloads
(int fileId, long chatId, long messageId, int priority) Adds a file from a message to the list of file downloads.AddFileToDownloads
(DataInput input) Adds a file from a message to the list of file downloads. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
fileId
public int fileIdIdentifier of the file to download. -
chatId
public long chatIdChat identifier of the message with the file. -
messageId
public long messageIdMessage identifier. -
priority
public int priorityPriority 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. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
AddFileToDownloads
public AddFileToDownloads()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 from download using downloadFile, i.e. it continues if downloadFile is canceled or is used to download a part of the file. ReturnsFile
-
AddFileToDownloads
public AddFileToDownloads(int fileId, long chatId, long messageId, int priority) 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 from download using downloadFile, i.e. it continues if downloadFile is canceled or is used to download a part of the file. ReturnsFile
- Parameters:
fileId
- int Identifier of the file to download.chatId
- long Chat identifier of the message with the file.messageId
- long Message identifier.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.
-
AddFileToDownloads
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 from download using downloadFile, i.e. it continues if downloadFile is canceled or is used to download a part of the file. ReturnsFile
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-