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.
    • rarityPerMille

      public int rarityPerMille
      The number of upgraded gifts that receive this model for each 1000 gifts upgraded.
    • 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, int rarityPerMille)
      Describes a model of an upgraded gift.
      Parameters:
      name - Name of the model.
      sticker - The sticker representing the upgraded gift.
      rarityPerMille - The number of upgraded gifts that receive this model for each 1000 gifts upgraded.
  • 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