public static class TdApi.CancelDownloadFile extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
fileId
Identifier of a file to stop downloading.
|
boolean |
onlyIfPending
Pass true to stop downloading only if it hasn't been started, i.e. request hasn't been sent to server.
|
Constructor and Description |
---|
CancelDownloadFile()
Default constructor for a function, which stops the downloading of a file.
|
CancelDownloadFile(int fileId,
boolean onlyIfPending)
Creates a function, which stops the downloading of a file.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public int fileId
public boolean onlyIfPending
public static final int CONSTRUCTOR
public CancelDownloadFile()
Returns Ok
public CancelDownloadFile(int fileId, boolean onlyIfPending)
Returns Ok
fileId
- Identifier of a file to stop downloading.onlyIfPending
- Pass true to stop downloading only if it hasn't been started, i.e. request hasn't been sent to server.public int getConstructor()
getConstructor
in class TdApi.Function