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



14
15
16
# File 'lib/tdlib/types/auto_download_settings.rb', line 14

def is_auto_download_enabled
  @is_auto_download_enabled
end

#max_other_file_sizeInteger

The maximum size of other file types to be auto-downloaded.

Returns:

  • (Integer)

    the current value of max_other_file_size



14
15
16
# File 'lib/tdlib/types/auto_download_settings.rb', line 14

def max_other_file_size
  @max_other_file_size
end

#max_photo_file_sizeInteger

The maximum size of a photo file to be auto-downloaded.

Returns:

  • (Integer)

    the current value of max_photo_file_size



14
15
16
# File 'lib/tdlib/types/auto_download_settings.rb', line 14

def max_photo_file_size
  @max_photo_file_size
end

#max_video_file_sizeInteger

The maximum size of a video file to be auto-downloaded.

Returns:

  • (Integer)

    the current value of max_video_file_size



14
15
16
# File 'lib/tdlib/types/auto_download_settings.rb', line 14

def max_video_file_size
  @max_video_file_size
end

#preload_large_videosBoolean

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

Returns:

  • (Boolean)

    the current value of preload_large_videos



14
15
16
# File 'lib/tdlib/types/auto_download_settings.rb', line 14

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



14
15
16
# File 'lib/tdlib/types/auto_download_settings.rb', line 14

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



14
15
16
# File 'lib/tdlib/types/auto_download_settings.rb', line 14

def use_less_data_for_calls
  @use_less_data_for_calls
end

#video_upload_bitrateInteger

The maximum suggested bitrate for uploaded videos.

Returns:

  • (Integer)

    the current value of video_upload_bitrate



14
15
16
# File 'lib/tdlib/types/auto_download_settings.rb', line 14

def video_upload_bitrate
  @video_upload_bitrate
end