List of all members | Public Fields | Public Instance Methods | Static Public Attributes
accentColor Class Referencefinal

Inherits Object.

Description

Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews.

Public Fields

int32 id_
 Accent color identifier.
 
int32 built_in_accent_color_id_
 Identifier of a built-in color to use in places, where only one color is needed; 0-6.
 
array< int32light_theme_colors_
 The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes.
 
array< int32dark_theme_colors_
 The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes.
 
int32 min_channel_chat_boost_level_
 The minimum chat boost level required to use the color in a channel chat.
 

Public Instance Methods

 accentColor ()
 
 accentColor (int32 id_, int32 built_in_accent_color_id_, array< int32 > &&light_theme_colors_, array< int32 > &&dark_theme_colors_, int32 min_channel_chat_boost_level_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from 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
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ accentColor() [1/2]

Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews.

◆ accentColor() [2/2]

accentColor ( int32  id_,
int32  built_in_accent_color_id_,
array< int32 > &&  light_theme_colors_,
array< int32 > &&  dark_theme_colors_,
int32  min_channel_chat_boost_level_ 
)

Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews.

Parameters
[in]id_Accent color identifier.
[in]built_in_accent_color_id_Identifier of a built-in color to use in places, where only one color is needed; 0-6.
[in]light_theme_colors_The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes.
[in]dark_theme_colors_The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes.
[in]min_channel_chat_boost_level_The minimum chat boost level required to use the color in a channel chat.

Method 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: