public static class TdApi.CancelDownloadFile extends TdApi.Function<TdApi.Ok>
Returns Ok
| 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.
|
| 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()
Returns an identifier uniquely determining type of the object.
|
toStringpublic 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()
TdApi.ObjectgetConstructor in class TdApi.Object