Class: TD::Types::AutoDownloadSettings

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

Overview

Contains auto-download settings.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_auto_download_enabledBoolean

True, if the auto-download is enabled.

Returns:

  • (Boolean)

    the current value of is_auto_download_enabled



12
13
14
# File 'lib/tdlib/types/auto_download_settings.rb', line 12

def is_auto_download_enabled
  @is_auto_download_enabled
end

#max_other_file_sizeInteger

Maximum size of other file types to be auto-downloaded.

Returns:

  • (Integer)

    the current value of max_other_file_size



12
13
14
# File 'lib/tdlib/types/auto_download_settings.rb', line 12

def max_other_file_size
  @max_other_file_size
end

#max_photo_file_sizeInteger

Maximum size of a photo file to be auto-downloaded.

Returns:

  • (Integer)

    the current value of max_photo_file_size



12
13
14
# File 'lib/tdlib/types/auto_download_settings.rb', line 12

def max_photo_file_size
  @max_photo_file_size
end

#max_video_file_sizeInteger

Maximum size of a video file to be auto-downloaded.

Returns:

  • (Integer)

    the current value of max_video_file_size



12
13
14
# File 'lib/tdlib/types/auto_download_settings.rb', line 12

def max_video_file_size
  @max_video_file_size
end

#preload_large_videosBoolean

True, if the beginning of videos needs to be preloaded for instant playback.

Returns:

  • (Boolean)

    the current value of preload_large_videos



12
13
14
# File 'lib/tdlib/types/auto_download_settings.rb', line 12

def preload_large_videos
  @preload_large_videos
end

#preload_next_audioBoolean

True, if the next audio track needs to be preloaded while the user is listening to an audio file.

Returns:

  • (Boolean)

    the current value of preload_next_audio



12
13
14
# File 'lib/tdlib/types/auto_download_settings.rb', line 12

def preload_next_audio
  @preload_next_audio
end

#use_less_data_for_callsBoolean

True, if "use less data for calls" option needs to be enabled.

Returns:

  • (Boolean)

    the current value of use_less_data_for_calls



12
13
14
# File 'lib/tdlib/types/auto_download_settings.rb', line 12

def use_less_data_for_calls
  @use_less_data_for_calls
end