RemoteFile class

Represents a remote file

Inheritance

Constructors

RemoteFile({String? extra, int? client_id, string? id, string? unique_id, Bool? is_uploading_active, Bool? is_uploading_completed, int53? uploaded_size})
RemoteFile.fromMap(Map<String, dynamic> map)

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
hashCode int
The hash code for this object.
no setterinherited
id string?
Remote file identifier; may be empty. Can be used by the current user across application restarts or even from other devices. 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/addFileToDownloads 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 application with the HTTP URL in the original_path and "#url#" as the conversion string. Application must generate the file by downloading it to the specified location
getter/setter pair
is_uploading_active Bool?
True, if the file is currently being uploaded (or a remote copy is being generated by some other means)
getter/setter pair
is_uploading_completed Bool?
True, if a remote copy is fully available
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tdType String
JSON object type; maps to the field @type.
no setteroverride
unique_id string?
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
getter/setter pair
uploaded_size int53?
Size of the remote available part of the file, in bytes; 0 if unknown
getter/setter pair

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 skipNulls is true the 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