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

Inherits Object.

Description

Contains information about supported accent color for user profile photo background.

Public Member Functions

 profileAccentColor ()
 profileAccentColor (int32 id_, object_ptr< profileAccentColors > &&light_theme_colors_, object_ptr< profileAccentColors > &&dark_theme_colors_, int32 min_supergroup_chat_boost_level_, int32 min_channel_chat_boost_level_)
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< profileAccentColors > dark_theme_colors_
 Accent colors expected to be used in dark themes.
int32 id_
 Profile accent color identifier.
object_ptr< profileAccentColors > light_theme_colors_
 Accent colors expected to be used in light themes.
int32 min_channel_chat_boost_level_
 The minimum chat boost level required to use the color in a channel chat.
int32 min_supergroup_chat_boost_level_
 The minimum chat boost level required to use the color in a supergroup chat.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ profileAccentColor() [1/2]

profileAccentColor ( )

Contains information about supported accent color for user profile photo background.

◆ profileAccentColor() [2/2]

profileAccentColor ( int32 id_,
object_ptr< profileAccentColors > && light_theme_colors_,
object_ptr< profileAccentColors > && dark_theme_colors_,
int32 min_supergroup_chat_boost_level_,
int32 min_channel_chat_boost_level_ )

Contains information about supported accent color for user profile photo background.

Parameters
[in]id_Profile accent color identifier.
[in]light_theme_colors_Accent colors expected to be used in light themes.
[in]dark_theme_colors_Accent colors expected to be used in dark themes.
[in]min_supergroup_chat_boost_level_The minimum chat boost level required to use the color in a supergroup chat.
[in]min_channel_chat_boost_level_The minimum chat boost level required to use the color in a channel chat.

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: