Class: TD::Types::AutoDownloadSettings
- Defined in:
- lib/tdlib/types/auto_download_settings.rb
Overview
Contains auto-download settings.
Instance Attribute Summary collapse
-
#is_auto_download_enabled ⇒ Boolean
True, if the auto-download is enabled.
-
#max_other_file_size ⇒ Integer
The maximum size of other file types to be auto-downloaded.
-
#max_photo_file_size ⇒ Integer
The maximum size of a photo file to be auto-downloaded.
-
#max_video_file_size ⇒ Integer
The maximum size of a video file to be auto-downloaded.
-
#preload_large_videos ⇒ Boolean
True, if the beginning of video files needs to be preloaded for instant playback.
-
#preload_next_audio ⇒ Boolean
True, if the next audio track needs to be preloaded while the user is listening to an audio file.
-
#use_less_data_for_calls ⇒ Boolean
True, if “use less data for calls” option needs to be enabled.
-
#video_upload_bitrate ⇒ Integer
The maximum suggested bitrate for uploaded videos.
Method Summary
Methods inherited from Base
Instance Attribute Details
#is_auto_download_enabled ⇒ Boolean
True, if the auto-download is 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_size ⇒ Integer
The maximum size of other file types to be auto-downloaded.
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_size ⇒ Integer
The maximum size of a photo file to be auto-downloaded.
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_size ⇒ Integer
The maximum size of a video file to be auto-downloaded.
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_videos ⇒ Boolean
True, if the beginning of video files needs to be preloaded for instant playback.
14 15 16 |
# File 'lib/tdlib/types/auto_download_settings.rb', line 14 def preload_large_videos @preload_large_videos end |
#preload_next_audio ⇒ Boolean
True, if the next audio track needs to be preloaded while the user is listening to an audio file.
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_calls ⇒ Boolean
True, if “use less data for calls” option needs to be enabled.
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_bitrate ⇒ Integer
The maximum suggested bitrate for uploaded videos.
14 15 16 |
# File 'lib/tdlib/types/auto_download_settings.rb', line 14 def video_upload_bitrate @video_upload_bitrate end |