TDLib
Loading...
Searching...
No Matches
td::td_api::autoDownloadSettings Class Referencefinal

Inherits td::td_api::Object.

Public Member Functions

 autoDownloadSettings ()
 
 autoDownloadSettings (bool is_auto_download_enabled_, int32 max_photo_file_size_, int53 max_video_file_size_, int53 max_other_file_size_, int32 video_upload_bitrate_, bool preload_large_videos_, bool preload_next_audio_, bool preload_stories_, bool use_less_data_for_calls_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

bool is_auto_download_enabled_
 True, if the auto-download is enabled.
 
int32 max_photo_file_size_
 The maximum size of a photo file to be auto-downloaded, in bytes.
 
int53 max_video_file_size_
 The maximum size of a video file to be auto-downloaded, in bytes.
 
int53 max_other_file_size_
 The maximum size of other file types to be auto-downloaded, in bytes.
 
int32 video_upload_bitrate_
 The maximum suggested bitrate for uploaded videos, in kbit/s.
 
bool preload_large_videos_
 True, if the beginning of video files needs to be preloaded for instant playback.
 
bool preload_next_audio_
 True, if the next audio track needs to be preloaded while the user is listening to an audio file.
 
bool preload_stories_
 True, if stories needs to be preloaded.
 
bool use_less_data_for_calls_
 True, if "use less data for calls" option needs to be enabled.
 

Static Public Attributes

static const std::int32_t ID = 991433696
 Identifier uniquely determining a type of the object.
 

Detailed Description

Contains auto-download settings.

Constructor & Destructor Documentation

◆ autoDownloadSettings() [1/2]

td::td_api::autoDownloadSettings::autoDownloadSettings ( )

Contains auto-download settings.

◆ autoDownloadSettings() [2/2]

td::td_api::autoDownloadSettings::autoDownloadSettings ( bool  is_auto_download_enabled_,
int32  max_photo_file_size_,
int53  max_video_file_size_,
int53  max_other_file_size_,
int32  video_upload_bitrate_,
bool  preload_large_videos_,
bool  preload_next_audio_,
bool  preload_stories_,
bool  use_less_data_for_calls_ 
)

Contains auto-download settings.

Parameters
[in]is_auto_download_enabled_True, if the auto-download is enabled.
[in]max_photo_file_size_The maximum size of a photo file to be auto-downloaded, in bytes.
[in]max_video_file_size_The maximum size of a video file to be auto-downloaded, in bytes.
[in]max_other_file_size_The maximum size of other file types to be auto-downloaded, in bytes.
[in]video_upload_bitrate_The maximum suggested bitrate for uploaded videos, in kbit/s.
[in]preload_large_videos_True, if the beginning of video files needs to be preloaded for instant playback.
[in]preload_next_audio_True, if the next audio track needs to be preloaded while the user is listening to an audio file.
[in]preload_stories_True, if stories needs to be preloaded.
[in]use_less_data_for_calls_True, if "use less data for calls" option needs to be enabled.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::autoDownloadSettings::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::autoDownloadSettings::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.


The documentation for this class was generated from the following file: