Package org.drinkless.tdlib
Class TdApi.GramRevenueStatus
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.GramRevenueStatus
- Enclosing class:
- TdApi
Contains information about TON Grams earned by the current user.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe Gram amount that is available for withdrawal; in the smallest units of the cryptocurrency.longThe Gram amount that isn't withdrawn yet; in the smallest units of the cryptocurrency.static final intIdentifier uniquely determining type of the object.longTotal Gram amount earned; in the smallest units of the cryptocurrency.booleanTrue, if Grams can be withdrawn. -
Constructor Summary
ConstructorsConstructorDescriptionContains 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 TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
totalAmount
public long totalAmountTotal Gram amount earned; in the smallest units of the cryptocurrency. -
balanceAmount
public long balanceAmountThe Gram amount that isn't withdrawn yet; in the smallest units of the cryptocurrency. -
availableAmount
public long availableAmountThe Gram amount that is available for withdrawal; in the smallest units of the cryptocurrency. -
withdrawalEnabled
public boolean withdrawalEnabledTrue, if Grams can be withdrawn. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-