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

Inherits Object.

Description

Contains basic information about a chat folder.

Public Member Functions

 chatFolderInfo ()
 chatFolderInfo (int32 id_, object_ptr< chatFolderName > &&name_, object_ptr< chatFolderIcon > &&icon_, int32 color_id_, bool is_shareable_, bool has_my_invite_links_)
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

int32 color_id_
 The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is disabled.
bool has_my_invite_links_
 True, if the chat folder has invite links created by the current user.
object_ptr< chatFolderIcon > icon_
 The chosen or default icon for the chat folder.
int32 id_
 Unique chat folder identifier.
bool is_shareable_
 True, if at least one link has been created for the folder.
object_ptr< chatFolderName > name_
 The name of the folder.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ chatFolderInfo() [1/2]

chatFolderInfo ( )

Contains basic information about a chat folder.

◆ chatFolderInfo() [2/2]

chatFolderInfo ( int32 id_,
object_ptr< chatFolderName > && name_,
object_ptr< chatFolderIcon > && icon_,
int32 color_id_,
bool is_shareable_,
bool has_my_invite_links_ )

Contains basic information about a chat folder.

Parameters
[in]id_Unique chat folder identifier.
[in]name_The name of the folder.
[in]icon_The chosen or default icon for the chat folder.
[in]color_id_The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is disabled.
[in]is_shareable_True, if at least one link has been created for the folder.
[in]has_my_invite_links_True, if the chat folder has invite links created by the current user.

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: