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 TypeFieldDescriptionlongThe number of Telegram stars that are available for withdrawal.static final intIdentifier uniquely determining type of the object.longThe number of Telegram stars that aren't withdrawn yet.intTime left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.longTotal number of the stars earned.booleanTrue, if Telegram stars can be withdrawn now or later. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about Telegram stars earned by a bot or a chat.StarRevenueStatus(long totalCount, long currentCount, long availableCount, boolean withdrawalEnabled, int nextWithdrawalIn) Contains information about Telegram stars earned by a bot or a chat. -
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
-
totalCount
public long totalCountTotal number of the stars earned. -
currentCount
public long currentCountThe number of Telegram stars that aren't withdrawn yet. -
availableCount
public long availableCountThe number 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(long totalCount, long currentCount, long availableCount, boolean withdrawalEnabled, int nextWithdrawalIn) Contains information about Telegram stars earned by a bot or a chat.- Parameters:
totalCount- Total number of the stars earned.currentCount- The number of Telegram stars that aren't withdrawn yet.availableCount- The number 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-