CancelDownloadFile class

Stops the downloading of a file. If a file has already been downloaded, does nothing.

Returns Ok.

Inheritance
Available Extensions

Constructors

CancelDownloadFile({required int file_id, required bool only_if_pending, int? extra, int? clientId})
Stops the downloading of a file. If a file has already been downloaded, does nothing

Properties

clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
extra int?
Request identifier. Must be non-zero.
read / writeoverride
file_id int
Identifier of a file to stop downloading.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
only_if_pending bool
Pass true to stop downloading only if it hasn't been started, i.e. request hasn't been sent to server.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Object to Map serializer
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic>? _map) CancelDownloadFile?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"cancelDownloadFile"