TDLib
Loading...
Searching...
No Matches
collectibleItemInfo Class Referencefinal

Inherits Object.

Description

Contains information about a collectible item and its last purchase.

Public Member Functions

 collectibleItemInfo ()
 collectibleItemInfo (int32 purchase_date_, string const &currency_, int53 amount_, string const &cryptocurrency_, int64 cryptocurrency_amount_, string const &url_)
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

int53 amount_
 The paid amount, in the smallest units of the currency.
string cryptocurrency_
 Cryptocurrency used to pay for the item.
int64 cryptocurrency_amount_
 The paid amount, in the smallest units of the cryptocurrency.
string currency_
 Currency for the paid amount.
int32 purchase_date_
 Point in time (Unix timestamp) when the item was purchased.
string url_
 Individual URL for the item on https://fragment.com.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ collectibleItemInfo() [1/2]

collectibleItemInfo ( )

Contains information about a collectible item and its last purchase.

◆ collectibleItemInfo() [2/2]

collectibleItemInfo ( int32 purchase_date_,
string const & currency_,
int53 amount_,
string const & cryptocurrency_,
int64 cryptocurrency_amount_,
string const & url_ )

Contains information about a collectible item and its last purchase.

Parameters
[in]purchase_date_Point in time (Unix timestamp) when the item was purchased.
[in]currency_Currency for the paid amount.
[in]amount_The paid amount, in the smallest units of the currency.
[in]cryptocurrency_Cryptocurrency used to pay for the item.
[in]cryptocurrency_amount_The paid amount, in the smallest units of the cryptocurrency.
[in]url_Individual URL for the item on https://fragment.com.

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: