Package org.drinkless.tdlib
Class TdApi.StarTransactionTypeUpgradedGiftSale
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarTransactionType
org.drinkless.tdlib.TdApi.StarTransactionTypeUpgradedGiftSale
- Enclosing class:
- TdApi
The transaction is a sale of an upgraded gift; relevant for regular users only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe number of Telegram Stars received by the Telegram for each 1000 Telegram Stars received by the seller of the gift.The amount of Telegram Stars that were received by Telegram; can be negative for refunds.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; relevant for regular users only.StarTransactionTypeUpgradedGiftSale(long userId, TdApi.UpgradedGift gift, int commissionPerMille, TdApi.StarAmount commissionStarAmount, boolean viaOffer) The transaction is a sale of an upgraded gift; relevant for regular users only. -
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 Telegram Stars received by the Telegram for each 1000 Telegram Stars received by the seller of the gift. -
commissionStarAmount
The amount of Telegram Stars that were received by Telegram; can be negative for refunds. -
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
-
StarTransactionTypeUpgradedGiftSale
public StarTransactionTypeUpgradedGiftSale()The transaction is a sale of an upgraded gift; relevant for regular users only. -
StarTransactionTypeUpgradedGiftSale
public StarTransactionTypeUpgradedGiftSale(long userId, TdApi.UpgradedGift gift, int commissionPerMille, TdApi.StarAmount commissionStarAmount, boolean viaOffer) The transaction is a sale of an upgraded gift; relevant for regular users only.- Parameters:
userId- Identifier of the user that bought the gift.gift- The gift.commissionPerMille- The number of Telegram Stars received by the Telegram for each 1000 Telegram Stars received by the seller of the gift.commissionStarAmount- The amount of Telegram Stars that were received by Telegram; can be negative for refunds.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
-