Sha256: 555c089a0955f9eee9eb6b20101f0fb5a6af32f6eeca0f9fd7f8ae036d66d458
Contents?: true
Size: 1.56 KB
Versions: 3
Compression:
Stored size: 1.56 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 download_offset [Integer] Download will be started from this offset. # downloaded_prefix_size is calculated from this offset. # @attr downloaded_prefix_size [Integer] If is_downloading_completed is false, then only some prefix of the file # starting from download_offset 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 :download_offset, TD::Types::Integer attribute :downloaded_prefix_size, TD::Types::Integer attribute :downloaded_size, TD::Types::Integer end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
tdlib-schema-1.7.0.1 | lib/tdlib/types/local_file.rb |
tdlib-ruby-2.2.0 | lib/tdlib/types/local_file.rb |
tdlib-ruby-2.1.0 | lib/tdlib/types/local_file.rb |