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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.TonTransactionType
TdApi.TonTransactionType.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionintThe number of Toncoins received by the Telegram for each 1000 Toncoins received by the seller of the gift.longThe Toncoin amount that was 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 who 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 who 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 Toncoin amount that was 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 who 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 Toncoin amount that was 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.TonTransactionType- Returns:
- this.CONSTRUCTOR
-