TDLib
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
messageStakeDice Class Referencefinal

Inherits MessageContent.

Description

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

Public Member Functions

 messageStakeDice ()
 
 messageStakeDice (object_ptr< DiceStickers > &&initial_state_, object_ptr< DiceStickers > &&final_state_, int32 value_, int53 stake_gram_amount_, int53 prize_gram_amount_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
 
TlObject & operator= (TlObject &&)=default
 
virtual void store (TlStorerCalcLength &s) const
 
virtual void store (TlStorerUnsafe &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

object_ptr< DiceStickers > 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.
 
object_ptr< DiceStickers > 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.
 
int53 prize_gram_amount_
 The TON Gram amount that was gained from the roll; in the smallest units of the currency; -1 if the dice don't have final state yet.
 
int53 stake_gram_amount_
 The TON Gram amount that was staked; in the smallest units of the currency.
 
int32 value_
 The dice value. If the value is 0, then the dice don't have final state yet.
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ messageStakeDice() [1/2]

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

◆ messageStakeDice() [2/2]

messageStakeDice ( object_ptr< DiceStickers > &&  initial_state_,
object_ptr< DiceStickers > &&  final_state_,
int32  value_,
int53  stake_gram_amount_,
int53  prize_gram_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't have final state yet.
[in]stake_gram_amount_The TON Gram amount that was staked; in the smallest units of the currency.
[in]prize_gram_amount_The TON Gram amount that was gained from the roll; in the smallest units of the currency; -1 if the dice don't have final state yet.

Member Function Documentation

◆ store()

void 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 TlObject.


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