DownloadFile
Object Hierarchy:
Description:
public class DownloadFile :
TDObject
Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates
Content:
Properties:
- public int32 file_id { get; set construct; }
Identifier of the file to download
- public int64 limit { get; set construct; }
Number of bytes which need to be downloaded starting from the "offset"
position before the download will automatically be canceled; use 0 to download without a limit
- public int64 offset { get; set construct; }
The starting position from which the file needs to be downloaded
- public int32 priority { get; set construct; }
Priority of the download (1-32). The higher the priority, the earlier
the file will be downloaded. If the priorities of two files are equal, then the last one for which downloadFile/addFileToDownloads was
called will be downloaded first
- public bool synchronous { get; set construct; }
Pass true to return response only after the file download has
succeeded, has failed, has been canceled, or a new Client.download_file
request with different offset/limit parameters was sent; pass false to return file state immediately, just after the download has been
started
Creation methods:
- public DownloadFile (int32 file_id, int32 priority, int64 offset, int64 limit, bool synchronous)
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref