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

Inherits td::td_api::Object.

Public Member Functions

 forumTopic ()
 
 forumTopic (object_ptr< forumTopicInfo > &&info_, object_ptr< message > &&last_message_, bool is_pinned_, int32 unread_count_, int53 last_read_inbox_message_id_, int53 last_read_outbox_message_id_, int32 unread_mention_count_, int32 unread_reaction_count_, object_ptr< chatNotificationSettings > &&notification_settings_, object_ptr< draftMessage > &&draft_message_)
 
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

object_ptr< forumTopicInfoinfo_
 Basic information about the topic.
 
object_ptr< messagelast_message_
 Last message in the topic; may be null if unknown.
 
bool is_pinned_
 True, if the topic is pinned in the topic list.
 
int32 unread_count_
 Number of unread messages in the topic.
 
int53 last_read_inbox_message_id_
 Identifier of the last read incoming message.
 
int53 last_read_outbox_message_id_
 Identifier of the last read outgoing message.
 
int32 unread_mention_count_
 Number of unread messages with a mention/reply in the topic.
 
int32 unread_reaction_count_
 Number of messages with unread reactions in the topic.
 
object_ptr< chatNotificationSettingsnotification_settings_
 Notification settings for the topic.
 
object_ptr< draftMessagedraft_message_
 A draft of a message in the topic; may be null if none.
 

Static Public Attributes

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

Detailed Description

Describes a forum topic.

Constructor & Destructor Documentation

◆ forumTopic() [1/2]

td::td_api::forumTopic::forumTopic ( )

Describes a forum topic.

◆ forumTopic() [2/2]

td::td_api::forumTopic::forumTopic ( object_ptr< forumTopicInfo > &&  info_,
object_ptr< message > &&  last_message_,
bool  is_pinned_,
int32  unread_count_,
int53  last_read_inbox_message_id_,
int53  last_read_outbox_message_id_,
int32  unread_mention_count_,
int32  unread_reaction_count_,
object_ptr< chatNotificationSettings > &&  notification_settings_,
object_ptr< draftMessage > &&  draft_message_ 
)

Describes a forum topic.

Parameters
[in]info_Basic information about the topic.
[in]last_message_Last message in the topic; may be null if unknown.
[in]is_pinned_True, if the topic is pinned in the topic list.
[in]unread_count_Number of unread messages in the topic.
[in]last_read_inbox_message_id_Identifier of the last read incoming message.
[in]last_read_outbox_message_id_Identifier of the last read outgoing message.
[in]unread_mention_count_Number of unread messages with a mention/reply in the topic.
[in]unread_reaction_count_Number of messages with unread reactions in the topic.
[in]notification_settings_Notification settings for the topic.
[in]draft_message_A draft of a message in the topic; may be null if none.

Member Function Documentation

◆ get_id()

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

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

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