Class TdApi.GetUpgradedGiftVariants

Enclosing class:
TdApi

public static class TdApi.GetUpgradedGiftVariants extends TdApi.Function<TdApi.GiftUpgradeVariants>
Returns all possible variants of upgraded gifts for a regular gift.

Returns GiftUpgradeVariants

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function

    TdApi.Function.Constructors
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    long
    Identifier of the regular gift.
    boolean
    Pass true to get models that can be obtained by crafting a gift from upgraded gifts.
    boolean
    Pass true to get models that can be obtained by upgrading a regular gift.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which returns all possible variants of upgraded gifts for a regular gift.
    GetUpgradedGiftVariants(long regularGiftId, boolean returnUpgradeModels, boolean returnCraftModels)
    Creates a function, which returns all possible variants of upgraded gifts for a regular gift.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

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

    • regularGiftId

      public long regularGiftId
      Identifier of the regular gift.
    • returnUpgradeModels

      public boolean returnUpgradeModels
      Pass true to get models that can be obtained by upgrading a regular gift.
    • returnCraftModels

      public boolean returnCraftModels
      Pass true to get models that can be obtained by crafting a gift from upgraded gifts.
    • CONSTRUCTOR

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

    • GetUpgradedGiftVariants

      public GetUpgradedGiftVariants()
      Default constructor for a function, which returns all possible variants of upgraded gifts for a regular gift.

      Returns GiftUpgradeVariants

    • GetUpgradedGiftVariants

      public GetUpgradedGiftVariants(long regularGiftId, boolean returnUpgradeModels, boolean returnCraftModels)
      Creates a function, which returns all possible variants of upgraded gifts for a regular gift.

      Returns GiftUpgradeVariants

      Parameters:
      regularGiftId - Identifier of the regular gift.
      returnUpgradeModels - Pass true to get models that can be obtained by upgrading a regular gift.
      returnCraftModels - Pass true to get models that can be obtained by crafting a gift from upgraded gifts.
  • Method Details