Sha256: 04c82d6596de203ffa0fad6a3456fc54b6f7caadc11106431e5798f4dd2c6773
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
module TD::Types # Represents a local file. # # @attr path [String, nil] Local path to the locally available file part; may be empty. # @attr can_be_downloaded [Boolean] True, if it is possible to try to download or generate the file. # @attr can_be_deleted [Boolean] True, if the file can be deleted. # @attr is_downloading_active [Boolean] True, if the file is currently being downloaded (or a local copy is being # generated by some other means). # @attr is_downloading_completed [Boolean] True, if the local copy is fully available. # @attr downloaded_prefix_size [Integer] If is_downloading_completed is false, then only some prefix of the file is # ready to be read. # downloaded_prefix_size is the size of that prefix. # @attr downloaded_size [Integer] Total downloaded file bytes. # Should be used only for calculating download progress. # The actual file size may be bigger, and some parts of it may contain garbage. class LocalFile < Base attribute :path, TD::Types::String.optional.default(nil) attribute :can_be_downloaded, TD::Types::Bool attribute :can_be_deleted, TD::Types::Bool attribute :is_downloading_active, TD::Types::Bool attribute :is_downloading_completed, TD::Types::Bool attribute :downloaded_prefix_size, TD::Types::Integer attribute :downloaded_size, TD::Types::Integer end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tdlib-ruby-2.0.0 | lib/tdlib/types/local_file.rb |