Inherits Object.
Describes state of the stake dice.
Public Fields | |
| string | state_hash_ |
| 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. | |
| int53 | stake_toncoin_amount_ |
| The Toncoin amount that was staked in the previous roll; in the smallest units of the currency. | |
| array< int53 > | suggested_stake_toncoin_amounts_ |
| The amounts of Toncoins that are suggested to be staked; in the smallest units of the currency. | |
| int32 | current_streak_ |
| The number of rolled sixes towards the streak; 0-2. | |
| array< int32 > | prize_per_mille_ |
| 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. | |
| int32 | streak_prize_per_mille_ |
| 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. | |
Public Instance Methods | |
| stakeDiceState () | |
| stakeDiceState (string const &state_hash_, int53 stake_toncoin_amount_, array< int53 > &&suggested_stake_toncoin_amounts_, int32 current_streak_, array< int32 > &&prize_per_mille_, int32 streak_prize_per_mille_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
| virtual void | store (TlStorerUnsafe &s) const |
| virtual void | store (TlStorerCalcLength &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject (TlObject &&)=default | |
| TlObject & | operator= (TlObject &&)=default |
| virtual | ~TlObject ()=default |
Static Public Attributes | |
| static const std::int32_t | ID = 2004711564 |
| Identifier uniquely determining a type of the object. | |
| stakeDiceState | ( | ) |
Describes state of the stake dice.
| stakeDiceState | ( | string const & | state_hash_, |
| int53 | stake_toncoin_amount_, | ||
| array< int53 > && | suggested_stake_toncoin_amounts_, | ||
| int32 | current_streak_, | ||
| array< int32 > && | prize_per_mille_, | ||
| int32 | streak_prize_per_mille_ | ||
| ) |
Describes state of the stake dice.
| [in] | state_hash_ | 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. |
| [in] | stake_toncoin_amount_ | The Toncoin amount that was staked in the previous roll; in the smallest units of the currency. |
| [in] | suggested_stake_toncoin_amounts_ | The amounts of Toncoins that are suggested to be staked; in the smallest units of the currency. |
| [in] | current_streak_ | The number of rolled sixes towards the streak; 0-2. |
| [in] | prize_per_mille_ | 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. |
| [in] | streak_prize_per_mille_ | 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. |
|
finalvirtual |