tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::stakeDiceState Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::stakeDiceState:
td::td_api::Object td::TlObject

Public Member Functions

 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 Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

string state_hash_
 Hash of the state to use for sending the next dice; may be empty if the stake dice can&#x27;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< int53suggested_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< int32prize_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&#x27;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.
 

Static Public Attributes

static const std::int32_t ID = 2004711564
 Identifier uniquely determining a type of the object.
 

Detailed Description

Describes state of the stake dice.

Definition at line 64230 of file td_api.h.

Constructor & Destructor Documentation

◆ stakeDiceState() [1/2]

td::td_api::stakeDiceState::stakeDiceState ( )

Describes state of the stake dice.

◆ stakeDiceState() [2/2]

td::td_api::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_ 
)

Describes state of the stake dice.

Parameters
[in]state_hash_Hash of the state to use for sending the next dice; may be empty if the stake dice can&#x27;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&#x27;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.

Member Function Documentation

◆ store()

void td::td_api::stakeDiceState::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ current_streak_

int32 td::td_api::stakeDiceState::current_streak_

The number of rolled sixes towards the streak; 0-2.

Definition at line 64247 of file td_api.h.

◆ ID

const std::int32_t td::td_api::stakeDiceState::ID = 2004711564
static

Identifier uniquely determining a type of the object.

Definition at line 64271 of file td_api.h.

◆ prize_per_mille_

array<int32> td::td_api::stakeDiceState::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&#x27;t be sent by the current user.

Definition at line 64249 of file td_api.h.

◆ stake_toncoin_amount_

int53 td::td_api::stakeDiceState::stake_toncoin_amount_

The Toncoin amount that was staked in the previous roll; in the smallest units of the currency.

Definition at line 64243 of file td_api.h.

◆ state_hash_

string td::td_api::stakeDiceState::state_hash_

Hash of the state to use for sending the next dice; may be empty if the stake dice can&#x27;t be sent by the current user.

Definition at line 64241 of file td_api.h.

◆ streak_prize_per_mille_

int32 td::td_api::stakeDiceState::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.

Definition at line 64251 of file td_api.h.

◆ suggested_stake_toncoin_amounts_

array<int53> td::td_api::stakeDiceState::suggested_stake_toncoin_amounts_

The amounts of Toncoins that are suggested to be staked; in the smallest units of the currency.

Definition at line 64245 of file td_api.h.


The documentation for this class was generated from the following file: