Class TdApi.StarTransaction
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.StarTransaction
- Enclosing class:
- TdApi
Represents a transaction changing the amount of owned Telegram Stars.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.int
Point in time (Unix timestamp) when the transaction was completed.Unique identifier of the transaction.boolean
True, if the transaction is a refund of a previous transaction.Source of the incoming transaction, or its recipient for outgoing transactions.long
The amount of added owned Telegram Stars; negative for outgoing transactions. -
Constructor Summary
ConstructorDescriptionRepresents a transaction changing the amount of owned Telegram Stars.StarTransaction
(String id, long starCount, boolean isRefund, int date, TdApi.StarTransactionPartner partner) Represents a transaction changing the amount of owned Telegram Stars. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
id
Unique identifier of the transaction. -
starCount
public long starCountThe amount of added owned Telegram Stars; 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. -
partner
Source of the incoming transaction, or its recipient for outgoing transactions. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StarTransaction
public StarTransaction()Represents a transaction changing the amount of owned Telegram Stars. -
StarTransaction
public StarTransaction(String id, long starCount, boolean isRefund, int date, TdApi.StarTransactionPartner partner) Represents a transaction changing the amount of owned Telegram Stars.- Parameters:
id
- Unique identifier of the transaction.starCount
- The amount of added owned Telegram Stars; 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.partner
- Source of the incoming transaction, or its recipient for outgoing transactions.
-
-
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-