tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::autoDownloadSettings Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::autoDownloadSettings:
td::td_api::Object td::TlObject

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_)
 
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.

Definition at line 2985 of file td_api.h.

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

◆ 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.

Member Data Documentation

◆ ID

const std::int32_t td::td_api::autoDownloadSettings::ID = 991433696
static

Identifier uniquely determining a type of the object.

Definition at line 3035 of file td_api.h.

◆ is_auto_download_enabled_

bool td::td_api::autoDownloadSettings::is_auto_download_enabled_

True, if the auto-download is enabled.

Definition at line 2996 of file td_api.h.

◆ max_other_file_size_

int53 td::td_api::autoDownloadSettings::max_other_file_size_

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

Definition at line 3002 of file td_api.h.

◆ max_photo_file_size_

int32 td::td_api::autoDownloadSettings::max_photo_file_size_

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

Definition at line 2998 of file td_api.h.

◆ max_video_file_size_

int53 td::td_api::autoDownloadSettings::max_video_file_size_

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

Definition at line 3000 of file td_api.h.

◆ preload_large_videos_

bool td::td_api::autoDownloadSettings::preload_large_videos_

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

Definition at line 3006 of file td_api.h.

◆ preload_next_audio_

bool td::td_api::autoDownloadSettings::preload_next_audio_

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

Definition at line 3008 of file td_api.h.

◆ preload_stories_

bool td::td_api::autoDownloadSettings::preload_stories_

True, if stories needs to be preloaded.

Definition at line 3010 of file td_api.h.

◆ use_less_data_for_calls_

bool td::td_api::autoDownloadSettings::use_less_data_for_calls_

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

Definition at line 3012 of file td_api.h.

◆ video_upload_bitrate_

int32 td::td_api::autoDownloadSettings::video_upload_bitrate_

The maximum suggested bitrate for uploaded videos, in kbit/s.

Definition at line 3004 of file td_api.h.


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