Class TdApi.TonTransactionTypeUpgradedGiftSale

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.TonTransactionType
org.drinkless.tdlib.TdApi.TonTransactionTypeUpgradedGiftSale
Enclosing class:
TdApi

public static class TdApi.TonTransactionTypeUpgradedGiftSale extends TdApi.TonTransactionType
The transaction is a sale of an upgraded gift.
  • Field Details

    • userId

      public long userId
      Identifier of the user who bought the gift.
    • gift

      public TdApi.UpgradedGift gift
      The gift.
    • commissionPerMille

      public int commissionPerMille
      The number of Grams received by the Telegram for each 1000 Grams received by the seller of the gift.
    • commissionGramAmount

      public long commissionGramAmount
      The Gram amount that was received by the Telegram; in the smallest units of the currency.
    • viaOffer

      public boolean viaOffer
      True, if the gift was sold through a purchase offer.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR