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::audio Class Referencefinal

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

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

Public Member Functions

 audio ()
 
 audio (int32 duration_, string const &title_, string const &performer_, string const &file_name_, string const &mime_type_, object_ptr< minithumbnail > &&album_cover_minithumbnail_, object_ptr< thumbnail > &&album_cover_thumbnail_, array< object_ptr< thumbnail > > &&external_album_covers_, object_ptr< file > &&audio_)
 
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

int32 duration_
 Duration of the audio, in seconds; as defined by the sender.
 
string title_
 Title of the audio; as defined by the sender.
 
string performer_
 Performer of the audio; as defined by the sender.
 
string file_name_
 Original name of the file; as defined by the sender.
 
string mime_type_
 The MIME type of the file; as defined by the sender.
 
object_ptr< minithumbnailalbum_cover_minithumbnail_
 The minithumbnail of the album cover; may be null.
 
object_ptr< thumbnailalbum_cover_thumbnail_
 The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is expected to be extracted from the downloaded audio file; may be null.
 
array< object_ptr< thumbnail > > external_album_covers_
 Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate.
 
object_ptr< fileaudio_
 File containing the audio.
 

Static Public Attributes

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

Detailed Description

Describes an audio file. Audio is usually in MP3 or M4A format.

Definition at line 1917 of file td_api.h.

Constructor & Destructor Documentation

◆ audio() [1/2]

td::td_api::audio::audio ( )

Describes an audio file. Audio is usually in MP3 or M4A format.

◆ audio() [2/2]

td::td_api::audio::audio ( int32  duration_,
string const &  title_,
string const &  performer_,
string const &  file_name_,
string const &  mime_type_,
object_ptr< minithumbnail > &&  album_cover_minithumbnail_,
object_ptr< thumbnail > &&  album_cover_thumbnail_,
array< object_ptr< thumbnail > > &&  external_album_covers_,
object_ptr< file > &&  audio_ 
)

Describes an audio file. Audio is usually in MP3 or M4A format.

Parameters
[in]duration_Duration of the audio, in seconds; as defined by the sender.
[in]title_Title of the audio; as defined by the sender.
[in]performer_Performer of the audio; as defined by the sender.
[in]file_name_Original name of the file; as defined by the sender.
[in]mime_type_The MIME type of the file; as defined by the sender.
[in]album_cover_minithumbnail_The minithumbnail of the album cover; may be null.
[in]album_cover_thumbnail_The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is expected to be extracted from the downloaded audio file; may be null.
[in]external_album_covers_Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate.
[in]audio_File containing the audio.

Member Function Documentation

◆ store()

void td::td_api::audio::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

◆ album_cover_minithumbnail_

object_ptr<minithumbnail> td::td_api::audio::album_cover_minithumbnail_

The minithumbnail of the album cover; may be null.

Definition at line 1938 of file td_api.h.

◆ album_cover_thumbnail_

object_ptr<thumbnail> td::td_api::audio::album_cover_thumbnail_

The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is expected to be extracted from the downloaded audio file; may be null.

Definition at line 1940 of file td_api.h.

◆ audio_

object_ptr<file> td::td_api::audio::audio_

File containing the audio.

Definition at line 1944 of file td_api.h.

◆ duration_

int32 td::td_api::audio::duration_

Duration of the audio, in seconds; as defined by the sender.

Definition at line 1928 of file td_api.h.

◆ external_album_covers_

array<object_ptr<thumbnail> > td::td_api::audio::external_album_covers_

Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate.

Definition at line 1942 of file td_api.h.

◆ file_name_

string td::td_api::audio::file_name_

Original name of the file; as defined by the sender.

Definition at line 1934 of file td_api.h.

◆ ID

const std::int32_t td::td_api::audio::ID = -166398841
static

Identifier uniquely determining a type of the object.

Definition at line 1967 of file td_api.h.

◆ mime_type_

string td::td_api::audio::mime_type_

The MIME type of the file; as defined by the sender.

Definition at line 1936 of file td_api.h.

◆ performer_

string td::td_api::audio::performer_

Performer of the audio; as defined by the sender.

Definition at line 1932 of file td_api.h.

◆ title_

string td::td_api::audio::title_

Title of the audio; as defined by the sender.

Definition at line 1930 of file td_api.h.


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