Package org.drinkless.tdlib
Class TdApi.TonTransactionTypeUpgradedGiftSale
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.TonTransactionType
org.drinkless.tdlib.TdApi.TonTransactionTypeUpgradedGiftSale
- Enclosing class:
- TdApi
The transaction is a sale of an upgraded gift.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe number of Toncoins received by the Telegram for each 1000 Toncoins received by the seller of the gift.longThe amount of Toncoins that were received by the Telegram; in the smallest units of the currency.static final intIdentifier uniquely determining type of the object.The gift.longIdentifier of the user that bought the gift.booleanTrue, if the gift was sold through a purchase offer. -
Constructor Summary
ConstructorsConstructorDescriptionThe transaction is a sale of an upgraded gift.TonTransactionTypeUpgradedGiftSale(long userId, TdApi.UpgradedGift gift, int commissionPerMille, long commissionToncoinAmount, boolean viaOffer) The transaction is a sale of an upgraded gift. -
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
-
userId
public long userIdIdentifier of the user that bought the gift. -
gift
The gift. -
commissionPerMille
public int commissionPerMilleThe number of Toncoins received by the Telegram for each 1000 Toncoins received by the seller of the gift. -
commissionToncoinAmount
public long commissionToncoinAmountThe amount of Toncoins that were received by the Telegram; in the smallest units of the currency. -
viaOffer
public boolean viaOfferTrue, if the gift was sold through a purchase offer. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
TonTransactionTypeUpgradedGiftSale
public TonTransactionTypeUpgradedGiftSale()The transaction is a sale of an upgraded gift. -
TonTransactionTypeUpgradedGiftSale
public TonTransactionTypeUpgradedGiftSale(long userId, TdApi.UpgradedGift gift, int commissionPerMille, long commissionToncoinAmount, boolean viaOffer) The transaction is a sale of an upgraded gift.- Parameters:
userId- Identifier of the user that bought the gift.gift- The gift.commissionPerMille- The number of Toncoins received by the Telegram for each 1000 Toncoins received by the seller of the gift.commissionToncoinAmount- The amount of Toncoins that were received by the Telegram; in the smallest units of the currency.viaOffer- True, if the gift was sold through a purchase offer.
-
-
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
-