public static class TdApi.RemoteFile extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
id
Remote file identifier; may be empty.
|
boolean |
isUploadingActive
True, if the file is currently being uploaded (or a remote copy is being generated by some other means).
|
boolean |
isUploadingCompleted
True, if a remote copy is fully available.
|
java.lang.String |
uniqueId
Unique file identifier; may be empty if unknown.
|
int |
uploadedSize
Size of the remote available part of the file; 0 if unknown.
|
Constructor and Description |
---|
RemoteFile()
Represents a remote file.
|
RemoteFile(java.lang.String id,
java.lang.String uniqueId,
boolean isUploadingActive,
boolean isUploadingCompleted,
int uploadedSize)
Represents a remote file.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String id
public java.lang.String uniqueId
public boolean isUploadingActive
public boolean isUploadingCompleted
public int uploadedSize
public static final int CONSTRUCTOR
public RemoteFile()
public RemoteFile(java.lang.String id, java.lang.String uniqueId, boolean isUploadingActive, boolean isUploadingCompleted, int uploadedSize)
id
- Remote file identifier; may be empty. Can be used across application restarts or even from other devices for the current user. Uniquely identifies a file, but a file can have a lot of different valid identifiers. If the ID starts with "http://" or "https://", it represents the HTTP URL of the file. TDLib is currently unable to download files if only their URL is known. If downloadFile is called on such a file or if it is sent to a secret chat, TDLib starts a file generation process by sending updateFileGenerationStart to the client with the HTTP URL in the originalPath and "#url#" as the conversion string. Clients should generate the file by downloading it to the specified location.uniqueId
- Unique file identifier; may be empty if unknown. The unique file identifier which is the same for the same file even for different users and is persistent over time.isUploadingActive
- True, if the file is currently being uploaded (or a remote copy is being generated by some other means).isUploadingCompleted
- True, if a remote copy is fully available.uploadedSize
- Size of the remote available part of the file; 0 if unknown.public int getConstructor()
getConstructor
in class TdApi.Object