OptimizeStorage
Object Hierarchy:
Description:
public class OptimizeStorage :
TDObject
Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be deleted
Content:
Properties:
- public ArrayList<int64?> chat_ids { get; set construct; }
If non-empty, only files from the given chats are considered. Use 0 as
chat identifier to delete files not belonging to any chat (e.g., profile photos)
- public int32 chat_limit { get; set construct; }
- public int32 count { get; set construct; }
Limit on the total number of files after deletion. Pass -1 to use the
default limit
- public ArrayList<int64?> exclude_chat_ids { get; set construct; }
If non-empty, files from the given chats are excluded. Use 0 as chat
identifier to exclude all files not belonging to any chat (e.g., profile photos)
- public ArrayList<FileType?> file_types { get; set construct; }
If non-empty, only files with the given types are considered. By
default, all types except thumbnails, profile photos, stickers and wallpapers are deleted
- public int32 immunity_delay { get; set construct; }
The amount of time after the creation of a file during which it can't
be deleted, in seconds. Pass -1 to use the default value
- public bool return_deleted_file_statistics { get; set construct; }
Pass true if statistics about the files that were deleted must be
returned instead of the whole storage usage statistics. Affects only returned statistics
- public int64 size { get; set construct; }
Limit on the total size of files after deletion, in bytes. Pass -1 to
use the default limit
- public int32 ttl { get; set construct; }
Limit on the time that has passed since the last time a file was
accessed (or creation time for some filesystems). Pass -1 to use the default limit
Creation methods:
- public OptimizeStorage (int64 size, int32 ttl, int32 count, int32 immunity_delay, ArrayList<FileType?> file_types, ArrayList<int64?> chat_ids, ArrayList<int64?> exclude_chat_ids, bool return_deleted_file_statistics, int32 chat_limit)
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