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

Inherits Object.

Description

Contains information about a Saved Messages topic.

Public Member Functions

 savedMessagesTopic ()
 savedMessagesTopic (int53 id_, object_ptr< SavedMessagesTopicType > &&type_, bool is_pinned_, int64 order_, object_ptr< message > &&last_message_, object_ptr< draftMessage > &&draft_message_)
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

object_ptr< draftMessage > draft_message_
 A draft of a message in the topic; may be null if none.
int53 id_
 Unique topic identifier.
bool is_pinned_
 True, if the topic is pinned.
object_ptr< message > last_message_
 Last message in the topic; may be null if none or unknown.
int64 order_
 A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order.
object_ptr< SavedMessagesTopicType > type_
 Type of the topic.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ savedMessagesTopic() [1/2]

savedMessagesTopic ( )

Contains information about a Saved Messages topic.

◆ savedMessagesTopic() [2/2]

savedMessagesTopic ( int53 id_,
object_ptr< SavedMessagesTopicType > && type_,
bool is_pinned_,
int64 order_,
object_ptr< message > && last_message_,
object_ptr< draftMessage > && draft_message_ )

Contains information about a Saved Messages topic.

Parameters
[in]id_Unique topic identifier.
[in]type_Type of the topic.
[in]is_pinned_True, if the topic is pinned.
[in]order_A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order.
[in]last_message_Last message in the topic; may be null if none or unknown.
[in]draft_message_A draft of a message in the topic; 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: