Class TdApi.GramRevenueStatus

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

public static class TdApi.GramRevenueStatus extends TdApi.Object
Contains information about TON Grams earned by the current user.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    The Gram amount that is available for withdrawal; in the smallest units of the cryptocurrency.
    long
    The Gram amount that isn't withdrawn yet; in the smallest units of the cryptocurrency.
    static final int
    Identifier uniquely determining type of the object.
    long
    Total Gram amount earned; in the smallest units of the cryptocurrency.
    boolean
    True, if Grams can be withdrawn.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Contains information about TON Grams earned by the current user.
    GramRevenueStatus(long totalAmount, long balanceAmount, long availableAmount, boolean withdrawalEnabled)
    Contains information about TON Grams earned by the current user.
  • 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

    • totalAmount

      public long totalAmount
      Total Gram amount earned; in the smallest units of the cryptocurrency.
    • balanceAmount

      public long balanceAmount
      The Gram amount that isn't withdrawn yet; in the smallest units of the cryptocurrency.
    • availableAmount

      public long availableAmount
      The Gram amount that is available for withdrawal; in the smallest units of the cryptocurrency.
    • withdrawalEnabled

      public boolean withdrawalEnabled
      True, if Grams can be withdrawn.
    • CONSTRUCTOR

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

    • GramRevenueStatus

      public GramRevenueStatus()
      Contains information about TON Grams earned by the current user.
    • GramRevenueStatus

      public GramRevenueStatus(long totalAmount, long balanceAmount, long availableAmount, boolean withdrawalEnabled)
      Contains information about TON Grams earned by the current user.
      Parameters:
      totalAmount - Total Gram amount earned; in the smallest units of the cryptocurrency.
      balanceAmount - The Gram amount that isn't withdrawn yet; in the smallest units of the cryptocurrency.
      availableAmount - The Gram amount that is available for withdrawal; in the smallest units of the cryptocurrency.
      withdrawalEnabled - True, if Grams can be withdrawn.
  • 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