Class TdApi.TonTransaction

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.TonTransaction
Enclosing class:
TdApi

public static class TdApi.TonTransaction extends TdApi.Object
Represents a transaction changing the amount of owned TON Grams.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    int
    Point in time (Unix timestamp) when the transaction was completed.
    long
    The amount of added owned Grams, in the smallest units of the cryptocurrency; negative for outgoing transactions.
    Unique identifier of the transaction.
    boolean
    True, if the transaction is a refund of a previous transaction.
    Type of the transaction.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Represents a transaction changing the amount of owned TON Grams.
    TonTransaction(String id, long gramAmount, boolean isRefund, int date, TdApi.TonTransactionType type)
    Represents a transaction changing the amount of owned TON Grams.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      public String id
      Unique identifier of the transaction.
    • gramAmount

      public long gramAmount
      The amount of added owned Grams, in the smallest units of the cryptocurrency; negative for outgoing transactions.
    • isRefund

      public boolean isRefund
      True, if the transaction is a refund of a previous transaction.
    • date

      public int date
      Point in time (Unix timestamp) when the transaction was completed.
    • type

      Type of the transaction.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • TonTransaction

      public TonTransaction()
      Represents a transaction changing the amount of owned TON Grams.
    • TonTransaction

      public TonTransaction(String id, long gramAmount, boolean isRefund, int date, TdApi.TonTransactionType type)
      Represents a transaction changing the amount of owned TON Grams.
      Parameters:
      id - Unique identifier of the transaction.
      gramAmount - The amount of added owned Grams, in the smallest units of the cryptocurrency; negative for outgoing transactions.
      isRefund - True, if the transaction is a refund of a previous transaction.
      date - Point in time (Unix timestamp) when the transaction was completed.
      type - Type of the transaction.
  • 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