Package org.drinkless.tdlib

# Class TdApi.GetUpgradedGiftVariants

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.GiftUpgradeVariants>
org.drinkless.tdlib.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`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.
  `long`
  `regularGiftId`
  Identifier of the regular gift.
  `boolean`
  `returnCraftModels`
  Pass true to get models that can be obtained by crafting a gift from upgraded gifts.
  `boolean`
  `returnUpgradeModels`
  Pass true to get models that can be obtained by upgrading a regular gift.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GetUpgradedGiftVariants()`
  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`
  `getConstructor()`
  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:
      - Constant Field Values

- ## 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

  - ### 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.Function<TdApi.GiftUpgradeVariants>`
    Returns:
      this.CONSTRUCTOR