List of all members | Public Fields | Public Instance Methods | Static Public Attributes
autoDownloadSettings Class Referencefinal

Inherits Object.

Description

Contains auto-download settings.

Public Fields

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.
 
int32 max_video_file_size_
 The maximum size of a video file to be auto-downloaded, in bytes.
 
int32 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 use_less_data_for_calls_
 True, if "use less data for calls" option needs to be enabled.
 

Public Instance Methods

 autoDownloadSettings ()
 
 autoDownloadSettings (bool is_auto_download_enabled_, int32 max_photo_file_size_, int32 max_video_file_size_, int32 max_other_file_size_, int32 video_upload_bitrate_, bool preload_large_videos_, bool preload_next_audio_, bool use_less_data_for_calls_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from 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
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ autoDownloadSettings() [1/2]

Contains auto-download settings.

◆ autoDownloadSettings() [2/2]

autoDownloadSettings ( bool  is_auto_download_enabled_,
int32  max_photo_file_size_,
int32  max_video_file_size_,
int32  max_other_file_size_,
int32  video_upload_bitrate_,
bool  preload_large_videos_,
bool  preload_next_audio_,
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]use_less_data_for_calls_True, if "use less data for calls" option needs to be enabled.

Method Documentation

◆ get_id()

std::int32_t get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements TlObject.

◆ store()

void 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 TlObject.


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