Module tdlight.api

Class TdApi.SetProfileAccentColor

Enclosing class:
TdApi

public static final class TdApi.SetProfileAccentColor extends TdApi.Function<TdApi.Ok>
Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    int
    Identifier of the accent color to use for profile; pass -1 if none.
    long
    Identifier of a custom emoji to be shown on the user's profile photo background; 0 if none.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only.
    SetProfileAccentColor(int profileAccentColorId, long profileBackgroundCustomEmojiId)
    Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only.
    Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only.
  • 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.Function

    toString

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

    serialize

    Methods inherited from class java.lang.Object

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

    • profileAccentColorId

      public int profileAccentColorId
      Identifier of the accent color to use for profile; pass -1 if none.
    • profileBackgroundCustomEmojiId

      public long profileBackgroundCustomEmojiId
      Identifier of a custom emoji to be shown on the user's profile photo background; 0 if none.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • SetProfileAccentColor

      public SetProfileAccentColor()
      Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only.

      Returns Ok

    • SetProfileAccentColor

      public SetProfileAccentColor(int profileAccentColorId, long profileBackgroundCustomEmojiId)
      Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only.

      Returns Ok

      Parameters:
      profileAccentColorId - Identifier of the accent color to use for profile; pass -1 if none.
      profileBackgroundCustomEmojiId - Identifier of a custom emoji to be shown on the user's profile photo background; 0 if none.

      Returns Ok

    • SetProfileAccentColor

      public SetProfileAccentColor(DataInput input) throws IOException
      Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only.

      Returns Ok

      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