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

Inherits td::td_api::PageBlock.

Public Member Functions

 pageBlockEmbedded ()
 
 pageBlockEmbedded (string const &url_, string const &html_, object_ptr< photo > &&poster_photo_, int32 width_, int32 height_, object_ptr< pageBlockCaption > &&caption_, bool is_full_width_, bool allow_scrolling_)
 
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

string url_
 Web page URL, if available.
 
string html_
 HTML-markup of the embedded page.
 
object_ptr< photoposter_photo_
 Poster photo, if available; may be null.
 
int32 width_
 Block width; 0 if unknown.
 
int32 height_
 Block height; 0 if unknown.
 
object_ptr< pageBlockCaptioncaption_
 Block caption.
 
bool is_full_width_
 True, if the block must be full width.
 
bool allow_scrolling_
 True, if scrolling needs to be allowed.
 

Static Public Attributes

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

Detailed Description

An embedded web page.

Constructor & Destructor Documentation

◆ pageBlockEmbedded() [1/2]

td::td_api::pageBlockEmbedded::pageBlockEmbedded ( )

An embedded web page.

◆ pageBlockEmbedded() [2/2]

td::td_api::pageBlockEmbedded::pageBlockEmbedded ( string const &  url_,
string const &  html_,
object_ptr< photo > &&  poster_photo_,
int32  width_,
int32  height_,
object_ptr< pageBlockCaption > &&  caption_,
bool  is_full_width_,
bool  allow_scrolling_ 
)

An embedded web page.

Parameters
[in]url_Web page URL, if available.
[in]html_HTML-markup of the embedded page.
[in]poster_photo_Poster photo, if available; may be null.
[in]width_Block width; 0 if unknown.
[in]height_Block height; 0 if unknown.
[in]caption_Block caption.
[in]is_full_width_True, if the block must be full width.
[in]allow_scrolling_True, if scrolling needs to be allowed.

Member Function Documentation

◆ get_id()

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

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

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