Package org.drinkless.tdlib
Class TdApi.UpgradeGiftResult
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.UpgradeGiftResult
- Enclosing class:
- TdApi
Contains result of gift upgrading.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanTrue, if the gift can be transferred to another owner.static final intIdentifier uniquely determining type of the object.intPoint in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT.The upgraded gift.booleanTrue, if the gift is displayed on the user's or the channel's profile page.intPoint in time (Unix timestamp) when the gift can be resold to another user; 0 if the gift can't be resold; only for the receiver of the gift.intPoint in time (Unix timestamp) when the gift can be transferred to another owner; 0 if the gift can be transferred immediately or transfer isn't possible.Unique identifier of the received gift for the current user.longNumber of Telegram Stars that must be paid to transfer the upgraded gift. -
Constructor Summary
ConstructorsConstructorDescriptionContains result of gift upgrading.UpgradeGiftResult(TdApi.UpgradedGift gift, String receivedGiftId, boolean isSaved, boolean canBeTransferred, long transferStarCount, int nextTransferDate, int nextResaleDate, int exportDate) Contains result of gift upgrading. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
gift
The upgraded gift. -
receivedGiftId
Unique identifier of the received gift for the current user. -
isSaved
public boolean isSavedTrue, if the gift is displayed on the user's or the channel's profile page. -
canBeTransferred
public boolean canBeTransferredTrue, if the gift can be transferred to another owner. -
transferStarCount
public long transferStarCountNumber of Telegram Stars that must be paid to transfer the upgraded gift. -
nextTransferDate
public int nextTransferDatePoint in time (Unix timestamp) when the gift can be transferred to another owner; 0 if the gift can be transferred immediately or transfer isn't possible. -
nextResaleDate
public int nextResaleDatePoint in time (Unix timestamp) when the gift can be resold to another user; 0 if the gift can't be resold; only for the receiver of the gift. -
exportDate
public int exportDatePoint in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
UpgradeGiftResult
public UpgradeGiftResult()Contains result of gift upgrading. -
UpgradeGiftResult
public UpgradeGiftResult(TdApi.UpgradedGift gift, String receivedGiftId, boolean isSaved, boolean canBeTransferred, long transferStarCount, int nextTransferDate, int nextResaleDate, int exportDate) Contains result of gift upgrading.- Parameters:
gift- The upgraded gift.receivedGiftId- Unique identifier of the received gift for the current user.isSaved- True, if the gift is displayed on the user's or the channel's profile page.canBeTransferred- True, if the gift can be transferred to another owner.transferStarCount- Number of Telegram Stars that must be paid to transfer the upgraded gift.nextTransferDate- Point in time (Unix timestamp) when the gift can be transferred to another owner; 0 if the gift can be transferred immediately or transfer isn't possible.nextResaleDate- Point in time (Unix timestamp) when the gift can be resold to another user; 0 if the gift can't be resold; only for the receiver of the gift.exportDate- Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-