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 that bought the gift.
    • gift

      public TdApi.UpgradedGift gift
      The gift.
    • commissionPerMille

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

      public long commissionToncoinAmount
      The amount of Toncoins that were 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 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.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR