Module tdlight.api

Class TdApi.SetBackground

Enclosing class:
TdApi

public static final class TdApi.SetBackground extends TdApi.Function<TdApi.Background>
Changes the background selected by the user; adds background to the list of installed backgrounds.

Returns Background

  • Field Details

    • background

      public TdApi.InputBackground background
      The input background to use; pass null to create a new filled background or to remove the current background.
    • type

      public TdApi.BackgroundType type
      Background type; pass null to use the default type of the remote background or to remove the current background.
    • forDarkTheme

      public boolean forDarkTheme
      Pass true if the background is changed for a dark theme.
    • CONSTRUCTOR

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

    • SetBackground

      public SetBackground()
      Changes the background selected by the user; adds background to the list of installed backgrounds.

      Returns Background

    • SetBackground

      public SetBackground(TdApi.InputBackground background, TdApi.BackgroundType type, boolean forDarkTheme)
      Changes the background selected by the user; adds background to the list of installed backgrounds.

      Returns Background

      Parameters:
      background - The input background to use; pass null to create a new filled background or to remove the current background.
      type - Background type; pass null to use the default type of the remote background or to remove the current background.
      forDarkTheme - Pass true if the background is changed for a dark theme.

      Returns Background

    • SetBackground

      public SetBackground(DataInput input) throws IOException
      Changes the background selected by the user; adds background to the list of installed backgrounds.

      Returns Background

      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