Class: TD::Types::Update::FileDownload

Inherits:
TD::Types::Update show all
Defined in:
lib/tdlib/types/update/file_download.rb

Overview

A file download was changed. This update is sent only after file download list is loaded for the first time.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#complete_dateInteger

Point in time (Unix timestamp) when the file downloading was completed; 0 if the file downloading isn’t completed.

Returns:

  • (Integer)

    the current value of complete_date



10
11
12
# File 'lib/tdlib/types/update/file_download.rb', line 10

def complete_date
  @complete_date
end

#countsTD::Types::DownloadedFileCounts

New number of being downloaded and recently downloaded files found.

Returns:



10
11
12
# File 'lib/tdlib/types/update/file_download.rb', line 10

def counts
  @counts
end

#file_idInteger

File identifier.

Returns:

  • (Integer)

    the current value of file_id



10
11
12
# File 'lib/tdlib/types/update/file_download.rb', line 10

def file_id
  @file_id
end

#is_pausedBoolean

True, if downloading of the file is paused.

Returns:

  • (Boolean)

    the current value of is_paused



10
11
12
# File 'lib/tdlib/types/update/file_download.rb', line 10

def is_paused
  @is_paused
end