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

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

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

Public Member Functions

 availableGift ()
 
 availableGift (object_ptr< gift > &&gift_, int32 resale_count_, int53 min_resale_star_count_, string const &title_)
 
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< giftgift_
 The gift.
 
int32 resale_count_
 Number of gifts that are available for resale.
 
int53 min_resale_star_count_
 The minimum price for the gifts available for resale in Telegram Star equivalent; 0 if there are no such gifts.
 
string title_
 The title of the upgraded gift; empty if the gift isn&#x27;t available for resale.
 

Static Public Attributes

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

Detailed Description

Describes a gift that is available for purchase.

Definition at line 3330 of file td_api.h.

Constructor & Destructor Documentation

◆ availableGift() [1/2]

td::td_api::availableGift::availableGift ( )

Describes a gift that is available for purchase.

◆ availableGift() [2/2]

td::td_api::availableGift::availableGift ( object_ptr< gift > &&  gift_,
int32  resale_count_,
int53  min_resale_star_count_,
string const &  title_ 
)

Describes a gift that is available for purchase.

Parameters
[in]gift_The gift.
[in]resale_count_Number of gifts that are available for resale.
[in]min_resale_star_count_The minimum price for the gifts available for resale in Telegram Star equivalent; 0 if there are no such gifts.
[in]title_The title of the upgraded gift; empty if the gift isn&#x27;t available for resale.

Member Function Documentation

◆ store()

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

◆ gift_

object_ptr<gift> td::td_api::availableGift::gift_

The gift.

Definition at line 3341 of file td_api.h.

◆ ID

const std::int32_t td::td_api::availableGift::ID = 850530502
static

Identifier uniquely determining a type of the object.

Definition at line 3365 of file td_api.h.

◆ min_resale_star_count_

int53 td::td_api::availableGift::min_resale_star_count_

The minimum price for the gifts available for resale in Telegram Star equivalent; 0 if there are no such gifts.

Definition at line 3345 of file td_api.h.

◆ resale_count_

int32 td::td_api::availableGift::resale_count_

Number of gifts that are available for resale.

Definition at line 3343 of file td_api.h.

◆ title_

string td::td_api::availableGift::title_

The title of the upgraded gift; empty if the gift isn&#x27;t available for resale.

Definition at line 3347 of file td_api.h.


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