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::messageStakeDice Class Referencefinal

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

Inheritance diagram for td::td_api::messageStakeDice:
td::td_api::MessageContent td::td_api::Object td::TlObject

Public Member Functions

 messageStakeDice ()
 
 messageStakeDice (object_ptr< DiceStickers > &&initial_state_, object_ptr< DiceStickers > &&final_state_, int32 value_, int53 stake_toncoin_amount_, int53 prize_toncoin_amount_)
 
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

object_ptr< DiceStickersinitial_state_
 The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known.
 
object_ptr< DiceStickersfinal_state_
 The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known.
 
int32 value_
 The dice value. If the value is 0, then the dice don&#x27;t have final state yet.
 
int53 stake_toncoin_amount_
 The Toncoin amount that was staked; in the smallest units of the currency.
 
int53 prize_toncoin_amount_
 The Toncoin amount that was gained from the roll; in the smallest units of the currency; -1 if the dice don&#x27;t have final state yet.
 

Static Public Attributes

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

Detailed Description

A stake dice message. The dice value is randomly generated by the server.

Definition at line 39796 of file td_api.h.

Constructor & Destructor Documentation

◆ messageStakeDice() [1/2]

td::td_api::messageStakeDice::messageStakeDice ( )

A stake dice message. The dice value is randomly generated by the server.

◆ messageStakeDice() [2/2]

td::td_api::messageStakeDice::messageStakeDice ( object_ptr< DiceStickers > &&  initial_state_,
object_ptr< DiceStickers > &&  final_state_,
int32  value_,
int53  stake_toncoin_amount_,
int53  prize_toncoin_amount_ 
)

A stake dice message. The dice value is randomly generated by the server.

Parameters
[in]initial_state_The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known.
[in]final_state_The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known.
[in]value_The dice value. If the value is 0, then the dice don&#x27;t have final state yet.
[in]stake_toncoin_amount_The Toncoin amount that was staked; in the smallest units of the currency.
[in]prize_toncoin_amount_The Toncoin amount that was gained from the roll; in the smallest units of the currency; -1 if the dice don&#x27;t have final state yet.

Member Function Documentation

◆ store()

void td::td_api::messageStakeDice::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

◆ final_state_

object_ptr<DiceStickers> td::td_api::messageStakeDice::final_state_

The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known.

Definition at line 39809 of file td_api.h.

◆ ID

const std::int32_t td::td_api::messageStakeDice::ID = 844428448
static

Identifier uniquely determining a type of the object.

Definition at line 39834 of file td_api.h.

◆ initial_state_

object_ptr<DiceStickers> td::td_api::messageStakeDice::initial_state_

The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known.

Definition at line 39807 of file td_api.h.

◆ prize_toncoin_amount_

int53 td::td_api::messageStakeDice::prize_toncoin_amount_

The Toncoin amount that was gained from the roll; in the smallest units of the currency; -1 if the dice don&#x27;t have final state yet.

Definition at line 39815 of file td_api.h.

◆ stake_toncoin_amount_

int53 td::td_api::messageStakeDice::stake_toncoin_amount_

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

Definition at line 39813 of file td_api.h.

◆ value_

int32 td::td_api::messageStakeDice::value_

The dice value. If the value is 0, then the dice don&#x27;t have final state yet.

Definition at line 39811 of file td_api.h.


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