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 TypeFieldDescriptionboolean
True, if the gift can be transferred to another owner.static final int
Identifier uniquely determining type of the object.int
Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT.The upgraded gift.boolean
True, if the gift is displayed on the user's or the channel's profile page.int
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.int
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.Unique identifier of the received gift for the current user.long
Number 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 TypeMethodDescriptionint
Returns 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.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-