Module tdlight.api

Class TdApi.DiceStickersSlotMachine

Enclosing class:
TdApi

public static final class TdApi.DiceStickersSlotMachine extends TdApi.DiceStickers
Animated stickers to be combined into a slot machine.
  • Field Details

    • background

      public TdApi.Sticker background
      The animated sticker with the slot machine background. The background animation must start playing after all reel animations finish.
    • lever

      public TdApi.Sticker lever
      The animated sticker with the lever animation. The lever animation must play once in the initial dice state.
    • leftReel

      public TdApi.Sticker leftReel
      The animated sticker with the left reel.
    • centerReel

      public TdApi.Sticker centerReel
      The animated sticker with the center reel.
    • rightReel

      public TdApi.Sticker rightReel
      The animated sticker with the right reel.
    • CONSTRUCTOR

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

    • DiceStickersSlotMachine

      public DiceStickersSlotMachine()
      Animated stickers to be combined into a slot machine.
    • DiceStickersSlotMachine

      public DiceStickersSlotMachine(TdApi.Sticker background, TdApi.Sticker lever, TdApi.Sticker leftReel, TdApi.Sticker centerReel, TdApi.Sticker rightReel)
      Animated stickers to be combined into a slot machine.
      Parameters:
      background - The animated sticker with the slot machine background. The background animation must start playing after all reel animations finish.
      lever - The animated sticker with the lever animation. The lever animation must play once in the initial dice state.
      leftReel - The animated sticker with the left reel.
      centerReel - The animated sticker with the center reel.
      rightReel - The animated sticker with the right reel.
    • DiceStickersSlotMachine

      public DiceStickersSlotMachine(DataInput input) throws IOException
      Animated stickers to be combined into a slot machine.
      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