public static class TdApi.SearchFileDownloads extends TdApi.Function<TdApi.FoundFileDownloads>
Returns FoundFileDownloads
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
limit
The maximum number of files to be returned.
|
java.lang.String |
offset
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results.
|
boolean |
onlyActive
Pass true to search only for active downloads, including paused.
|
boolean |
onlyCompleted
Pass true to search only for completed downloads.
|
java.lang.String |
query
Query to search for; may be empty to return all downloaded files.
|
| Constructor and Description |
|---|
SearchFileDownloads()
Default constructor for a function, which searches for files in the file download list or recently downloaded files from the list.
|
SearchFileDownloads(java.lang.String query,
boolean onlyActive,
boolean onlyCompleted,
java.lang.String offset,
int limit)
Creates a function, which searches for files in the file download list or recently downloaded files from the list.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String query
public boolean onlyActive
public boolean onlyCompleted
public java.lang.String offset
public int limit
public static final int CONSTRUCTOR
public SearchFileDownloads()
Returns FoundFileDownloads
public SearchFileDownloads(java.lang.String query,
boolean onlyActive,
boolean onlyCompleted,
java.lang.String offset,
int limit)
Returns FoundFileDownloads
query - Query to search for; may be empty to return all downloaded files.onlyActive - Pass true to search only for active downloads, including paused.onlyCompleted - Pass true to search only for completed downloads.offset - Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results.limit - The maximum number of files to be returned.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object