Class TdApi.UpgradedGiftModel

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.UpgradedGiftModel
Enclosing class:
TdApi

public static class TdApi.UpgradedGiftModel extends TdApi.Object
Describes a model of an upgraded gift.
  • Field Details

    • name

      public String name
      Name of the model.
    • sticker

      public TdApi.Sticker sticker
      The sticker representing the upgraded gift.
    • rarity

      The rarity of the model.
    • isCrafted

      public boolean isCrafted
      True, if the model can be obtained only through gift crafting.
    • CONSTRUCTOR

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

    • UpgradedGiftModel

      public UpgradedGiftModel()
      Describes a model of an upgraded gift.
    • UpgradedGiftModel

      public UpgradedGiftModel(String name, TdApi.Sticker sticker, TdApi.UpgradedGiftAttributeRarity rarity, boolean isCrafted)
      Describes a model of an upgraded gift.
      Parameters:
      name - Name of the model.
      sticker - The sticker representing the upgraded gift.
      rarity - The rarity of the model.
      isCrafted - True, if the model can be obtained only through gift crafting.
  • 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