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 Toncoins received by the user for each 1000 Toncoins 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 Toncoins that was 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 Toncoins received by the user for each 1000 Toncoins staked if the dice outcome is 6 three times in a row with the same stake.long[]The amounts of Toncoins 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 stakeToncoinAmount, long[] suggestedStakeToncoinAmounts, 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. -
stakeToncoinAmount
public long stakeToncoinAmountThe amount of Toncoins that was staked in the previous roll; in the smallest units of the currency. -
suggestedStakeToncoinAmounts
public long[] suggestedStakeToncoinAmountsThe amounts of Toncoins 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 Toncoins received by the user for each 1000 Toncoins 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 Toncoins received by the user for each 1000 Toncoins 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 stakeToncoinAmount, long[] suggestedStakeToncoinAmounts, 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.stakeToncoinAmount- The amount of Toncoins that was staked in the previous roll; in the smallest units of the currency.suggestedStakeToncoinAmounts- The amounts of Toncoins 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 Toncoins received by the user for each 1000 Toncoins 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 Toncoins received by the user for each 1000 Toncoins 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
-