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

Inherits td::td_api::Object.

Public Member Functions

 forumTopicInfo ()
 
 forumTopicInfo (int53 message_thread_id_, string const &name_, object_ptr< forumTopicIcon > &&icon_, int32 creation_date_, object_ptr< MessageSender > &&creator_id_, bool is_general_, bool is_outgoing_, bool is_closed_, bool is_hidden_)
 
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

int53 message_thread_id_
 Message thread identifier of the topic.
 
string name_
 Name of the topic.
 
object_ptr< forumTopicIconicon_
 Icon of the topic.
 
int32 creation_date_
 Point in time (Unix timestamp) when the topic was created.
 
object_ptr< MessageSendercreator_id_
 Identifier of the creator of the topic.
 
bool is_general_
 True, if the topic is the General topic list.
 
bool is_outgoing_
 True, if the topic was created by the current user.
 
bool is_closed_
 True, if the topic is closed.
 
bool is_hidden_
 True, if the topic is hidden above the topic list and closed; for General topic only.
 

Static Public Attributes

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

Detailed Description

Contains basic information about a forum topic.

Constructor & Destructor Documentation

◆ forumTopicInfo() [1/2]

td::td_api::forumTopicInfo::forumTopicInfo ( )

Contains basic information about a forum topic.

◆ forumTopicInfo() [2/2]

td::td_api::forumTopicInfo::forumTopicInfo ( int53  message_thread_id_,
string const &  name_,
object_ptr< forumTopicIcon > &&  icon_,
int32  creation_date_,
object_ptr< MessageSender > &&  creator_id_,
bool  is_general_,
bool  is_outgoing_,
bool  is_closed_,
bool  is_hidden_ 
)

Contains basic information about a forum topic.

Parameters
[in]message_thread_id_Message thread identifier of the topic.
[in]name_Name of the topic.
[in]icon_Icon of the topic.
[in]creation_date_Point in time (Unix timestamp) when the topic was created.
[in]creator_id_Identifier of the creator of the topic.
[in]is_general_True, if the topic is the General topic list.
[in]is_outgoing_True, if the topic was created by the current user.
[in]is_closed_True, if the topic is closed.
[in]is_hidden_True, if the topic is hidden above the topic list and closed; for General topic only.

Member Function Documentation

◆ get_id()

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

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

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