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 TypeFieldDescriptionlongThe Gram amount that was received by the Telegram; in the smallest units of the currency.intThe number of Grams received by the Telegram for each 1000 Grams received by the seller of the gift.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 commissionGramAmount, 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 Grams received by the Telegram for each 1000 Grams received by the seller of the gift. -
commissionGramAmount
public long commissionGramAmountThe Gram 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 commissionGramAmount, 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 Grams received by the Telegram for each 1000 Grams received by the seller of the gift.commissionGramAmount- The Gram 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.Object- Returns:
- this.CONSTRUCTOR
-