Package org.drinkless.tdlib
Class TdApi.StakeDiceState
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StakeDiceState
- Enclosing class:
- TdApi
Describes state of the stake dice.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.intThe number of rolled sixes towards the streak; 0-2.int[]The number of Grams received by the user for each 1000 Grams staked if the dice outcome is 1-6 correspondingly; may be empty if the stake dice can't be sent by the current user.longThe amount of TON Grams staked in the previous roll; in the smallest units of the currency.Hash of the state to use for sending the next dice; may be empty if the stake dice can't be sent by the current user.intThe number of Grams received by the user for each 1000 Grams staked if the dice outcome is 6 three times in a row with the same stake.long[]The amounts of Grams that are suggested to be staked; in the smallest units of the currency. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes state of the stake dice.StakeDiceState(String stateHash, long stakeGramAmount, long[] suggestedStakeGramAmounts, int currentStreak, int[] prizePerMille, int streakPrizePerMille) Describes state of the stake dice. -
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
-
stateHash
Hash of the state to use for sending the next dice; may be empty if the stake dice can't be sent by the current user. -
stakeGramAmount
public long stakeGramAmountThe amount of TON Grams staked in the previous roll; in the smallest units of the currency. -
suggestedStakeGramAmounts
public long[] suggestedStakeGramAmountsThe amounts of Grams that are suggested to be staked; in the smallest units of the currency. -
currentStreak
public int currentStreakThe number of rolled sixes towards the streak; 0-2. -
prizePerMille
public int[] prizePerMilleThe number of Grams received by the user for each 1000 Grams staked if the dice outcome is 1-6 correspondingly; may be empty if the stake dice can't be sent by the current user. -
streakPrizePerMille
public int streakPrizePerMilleThe number of Grams received by the user for each 1000 Grams staked if the dice outcome is 6 three times in a row with the same stake. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StakeDiceState
public StakeDiceState()Describes state of the stake dice. -
StakeDiceState
public StakeDiceState(String stateHash, long stakeGramAmount, long[] suggestedStakeGramAmounts, int currentStreak, int[] prizePerMille, int streakPrizePerMille) Describes state of the stake dice.- Parameters:
stateHash- Hash of the state to use for sending the next dice; may be empty if the stake dice can't be sent by the current user.stakeGramAmount- The amount of TON Grams staked in the previous roll; in the smallest units of the currency.suggestedStakeGramAmounts- The amounts of Grams that are suggested to be staked; in the smallest units of the currency.currentStreak- The number of rolled sixes towards the streak; 0-2.prizePerMille- The number of Grams received by the user for each 1000 Grams staked if the dice outcome is 1-6 correspondingly; may be empty if the stake dice can't be sent by the current user.streakPrizePerMille- The number of Grams received by the user for each 1000 Grams staked if the dice outcome is 6 three times in a row with the same stake.
-
-
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
-