Class: TD::Types::FileDownload

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/file_download.rb

Overview

Describes a file added to file download list.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#add_dateInteger

Point in time (Unix timestamp) when the file was added to the download list.

Returns:

  • (Integer)

    the current value of add_date



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

def add_date
  @add_date
end

#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/file_download.rb', line 10

def complete_date
  @complete_date
end

#file_idInteger

File identifier.

Returns:

  • (Integer)

    the current value of file_id



10
11
12
# File 'lib/tdlib/types/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/file_download.rb', line 10

def is_paused
  @is_paused
end

#messageTD::Types::Message

The message with the file.

Returns:



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

def message
  @message
end