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
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
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.longIdentifier of the regular gift.booleanPass true to get models that can be obtained by crafting a gift from upgraded gifts.booleanPass true to get models that can be obtained by upgrading a regular gift. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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 TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
regularGiftId
public long regularGiftIdIdentifier of the regular gift. -
returnUpgradeModels
public boolean returnUpgradeModelsPass true to get models that can be obtained by upgrading a regular gift. -
returnCraftModels
public boolean returnCraftModelsPass true to get models that can be obtained by crafting a gift from upgraded gifts. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.GiftUpgradeVariants>- Returns:
- this.CONSTRUCTOR
-