Package org.drinkless.tdlib
Class TdApi.StarRevenueStatus
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarRevenueStatus
- Enclosing class:
- TdApi
Contains information about Telegram Stars earned by a bot or a chat.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe amount of Telegram Stars that are available for withdrawal.static final int
Identifier uniquely determining type of the object.The amount of Telegram Stars that aren't withdrawn yet.int
Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.Total amount of Telegram Stars earned.boolean
True, if Telegram Stars can be withdrawn now or later. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about Telegram Stars earned by a bot or a chat.StarRevenueStatus
(TdApi.StarAmount totalAmount, TdApi.StarAmount currentAmount, TdApi.StarAmount availableAmount, boolean withdrawalEnabled, int nextWithdrawalIn) Contains information about Telegram Stars earned by a bot or a chat. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
totalAmount
Total amount of Telegram Stars earned. -
currentAmount
The amount of Telegram Stars that aren't withdrawn yet. -
availableAmount
The amount of Telegram Stars that are available for withdrawal. -
withdrawalEnabled
public boolean withdrawalEnabledTrue, if Telegram Stars can be withdrawn now or later. -
nextWithdrawalIn
public int nextWithdrawalInTime left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StarRevenueStatus
public StarRevenueStatus()Contains information about Telegram Stars earned by a bot or a chat. -
StarRevenueStatus
public StarRevenueStatus(TdApi.StarAmount totalAmount, TdApi.StarAmount currentAmount, TdApi.StarAmount availableAmount, boolean withdrawalEnabled, int nextWithdrawalIn) Contains information about Telegram Stars earned by a bot or a chat.- Parameters:
totalAmount
- Total amount of Telegram Stars earned.currentAmount
- The amount of Telegram Stars that aren't withdrawn yet.availableAmount
- The amount of Telegram Stars that are available for withdrawal.withdrawalEnabled
- True, if Telegram Stars can be withdrawn now or later.nextWithdrawalIn
- Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.
-
-
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
-