Package org.drinkless.tdlib
Class TdApi.AccentColor
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.AccentColor
- Enclosing class:
- TdApi
Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintIdentifier of a built-in color to use in places, where only one color is needed; 0-6.static final intIdentifier uniquely determining type of the object.int[]The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes.intAccent color identifier.int[]The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes.intThe minimum chat boost level required to use the color in a channel chat. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews.AccentColor(int id, int builtInAccentColorId, int[] lightThemeColors, int[] darkThemeColors, int minChannelChatBoostLevel) Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
id
public int idAccent color identifier. -
builtInAccentColorId
public int builtInAccentColorIdIdentifier of a built-in color to use in places, where only one color is needed; 0-6. -
lightThemeColors
public int[] lightThemeColorsThe list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes. -
darkThemeColors
public int[] darkThemeColorsThe list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes. -
minChannelChatBoostLevel
public int minChannelChatBoostLevelThe minimum chat boost level required to use the color in a channel chat. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AccentColor
public AccentColor()Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews. -
AccentColor
public AccentColor(int id, int builtInAccentColorId, int[] lightThemeColors, int[] darkThemeColors, int minChannelChatBoostLevel) Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews.- Parameters:
id- Accent color identifier.builtInAccentColorId- Identifier of a built-in color to use in places, where only one color is needed; 0-6.lightThemeColors- The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes.darkThemeColors- The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes.minChannelChatBoostLevel- The minimum chat boost level required to use the color in a channel chat.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-