Module tdlight.api

Class TdApi.AccentColor

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.AccentColor
Enclosing class:
TdApi

public static final class TdApi.AccentColor extends TdApi.Object
Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Identifier of a built-in color to use in places, where only one color is needed; 0-6.
    static final int
    Identifier 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.
    int
    Accent color identifier.
    int[]
    The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes.
    int
    The minimum chat boost level required to use the color in a channel chat.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Contains 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.
    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 Type
    Method
    Description
    boolean
     
    int
    Returns an identifier uniquely determining type of the object.
    int
     
    void
    Serialize the TDLib class

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      public int id
      Accent color identifier.
    • builtInAccentColorId

      public int builtInAccentColorId
      Identifier of a built-in color to use in places, where only one color is needed; 0-6.
    • lightThemeColors

      public int[] lightThemeColors
      The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes.
    • darkThemeColors

      public int[] darkThemeColors
      The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes.
    • minChannelChatBoostLevel

      public int minChannelChatBoostLevel
      The minimum chat boost level required to use the color in a channel chat.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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.
    • AccentColor

      public AccentColor(DataInput input) throws IOException
      Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object