Package org.drinkless.tdlib
Class TdApi.TonTransaction
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.TonTransaction
- Enclosing class:
- TdApi
Represents a transaction changing the amount of owned Toncoins.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.intPoint in time (Unix timestamp) when the transaction was completed.Unique identifier of the transaction.booleanTrue, if the transaction is a refund of a previous transaction.longThe amount of added owned Toncoins; negative for outgoing transactions.Type of the transaction. -
Constructor Summary
ConstructorsConstructorDescriptionRepresents a transaction changing the amount of owned Toncoins.TonTransaction(String id, long tonAmount, boolean isRefund, int date, TdApi.TonTransactionType type) Represents a transaction changing the amount of owned Toncoins. -
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
-
id
Unique identifier of the transaction. -
tonAmount
public long tonAmountThe amount of added owned Toncoins; negative for outgoing transactions. -
isRefund
public boolean isRefundTrue, if the transaction is a refund of a previous transaction. -
date
public int datePoint in time (Unix timestamp) when the transaction was completed. -
type
Type of the transaction. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
TonTransaction
public TonTransaction()Represents a transaction changing the amount of owned Toncoins. -
TonTransaction
public TonTransaction(String id, long tonAmount, boolean isRefund, int date, TdApi.TonTransactionType type) Represents a transaction changing the amount of owned Toncoins.- Parameters:
id- Unique identifier of the transaction.tonAmount- The amount of added owned Toncoins; 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-