TDLib
Loading...
Searching...
No Matches
pageBlockEmbeddedPost Class Referencefinal

Inherits PageBlock.

Description

An embedded post; instant view only.

Public Member Functions

 pageBlockEmbeddedPost ()
 pageBlockEmbeddedPost (string const &url_, string const &author_, object_ptr< photo > &&author_photo_, int32 date_, array< object_ptr< PageBlock > > &&blocks_, object_ptr< pageBlockCaption > &&caption_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

string author_
 Post author.
object_ptr< photo > author_photo_
 Post author photo; may be null.
array< object_ptr< PageBlock > > blocks_
 Post content.
object_ptr< pageBlockCaption > caption_
 Post caption; may be null if none.
int32 date_
 Point in time (Unix timestamp) when the post was created; 0 if unknown.
string url_
 URL of the embedded post.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ pageBlockEmbeddedPost() [1/2]

pageBlockEmbeddedPost ( )

An embedded post; instant view only.

◆ pageBlockEmbeddedPost() [2/2]

pageBlockEmbeddedPost ( string const & url_,
string const & author_,
object_ptr< photo > && author_photo_,
int32 date_,
array< object_ptr< PageBlock > > && blocks_,
object_ptr< pageBlockCaption > && caption_ )

An embedded post; instant view only.

Parameters
[in]url_URL of the embedded post.
[in]author_Post author.
[in]author_photo_Post author photo; may be null.
[in]date_Point in time (Unix timestamp) when the post was created; 0 if unknown.
[in]blocks_Post content.
[in]caption_Post caption; may be null if none.

Member Function Documentation

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