Class TdApi.StarTransaction

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

public static class TdApi.StarTransaction extends TdApi.Object
Represents a transaction changing the amount of owned Telegram Stars.
  • Field Details

    • id

      public String id
      Unique identifier of the transaction.
    • starAmount

      public TdApi.StarAmount starAmount
      The amount of added owned Telegram Stars; 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

    • StarTransaction

      public StarTransaction()
      Represents a transaction changing the amount of owned Telegram Stars.
    • StarTransaction

      public StarTransaction(String id, TdApi.StarAmount starAmount, boolean isRefund, int date, TdApi.StarTransactionType type)
      Represents a transaction changing the amount of owned Telegram Stars.
      Parameters:
      id - Unique identifier of the transaction.
      starAmount - 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.
      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