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

Inherits Object.

Description

Describes a style that can be used to compose a text.

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 textCompositionStyle ()
 textCompositionStyle (string const &name_, int64 custom_emoji_id_, string const &title_, bool is_custom_, bool is_creator_, int32 install_count_, string const &prompt_, int53 creator_user_id_, object_ptr< textCompositionStyleExample > &&english_example_)
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

int53 creator_user_id_
 User identifier of the creator of the style; 0 if none or unknown.
int64 custom_emoji_id_
 Identifier of the custom emoji corresponding to the style; 0 if none.
object_ptr< textCompositionStyleExample > english_example_
 Example of the style usage in English; may be null if unknown.
int32 install_count_
 Number of users that installed the style; for created custom styles only; 0 if unknown.
bool is_creator_
 True, if the user is creator of the style.
bool is_custom_
 True, if the style is created by a user.
string name_
 Name of the style.
string prompt_
 Prompt of the style; for created custom styles only.
string title_
 Title of the style in the user application's language.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ textCompositionStyle() [1/2]

textCompositionStyle ( )

Describes a style that can be used to compose a text.

◆ textCompositionStyle() [2/2]

textCompositionStyle ( string const & name_,
int64 custom_emoji_id_,
string const & title_,
bool is_custom_,
bool is_creator_,
int32 install_count_,
string const & prompt_,
int53 creator_user_id_,
object_ptr< textCompositionStyleExample > && english_example_ )

Describes a style that can be used to compose a text.

Parameters
[in]name_Name of the style.
[in]custom_emoji_id_Identifier of the custom emoji corresponding to the style; 0 if none.
[in]title_Title of the style in the user application's language.
[in]is_custom_True, if the style is created by a user.
[in]is_creator_True, if the user is creator of the style.
[in]install_count_Number of users that installed the style; for created custom styles only; 0 if unknown.
[in]prompt_Prompt of the style; for created custom styles only.
[in]creator_user_id_User identifier of the creator of the style; 0 if none or unknown.
[in]english_example_Example of the style usage in English; may be null if unknown.

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: