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

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

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

Public Member Functions

 upgradeGiftResult ()
 
 upgradeGiftResult (object_ptr< upgradedGift > &&gift_, string const &received_gift_id_, bool is_saved_, bool can_be_transferred_, int53 transfer_star_count_, int53 drop_original_details_star_count_, int32 next_transfer_date_, int32 next_resale_date_, int32 export_date_)
 
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< upgradedGiftgift_
 The upgraded gift.
 
string received_gift_id_
 Unique identifier of the received gift for the current user.
 
bool is_saved_
 True, if the gift is displayed on the user&#x27;s or the channel&#x27;s profile page.
 
bool can_be_transferred_
 True, if the gift can be transferred to another owner.
 
int53 transfer_star_count_
 Number of Telegram Stars that must be paid to transfer the upgraded gift.
 
int53 drop_original_details_star_count_
 Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available.
 
int32 next_transfer_date_
 Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn&#x27;t possible.
 
int32 next_resale_date_
 Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can&#x27;t be resold; only for the receiver of the gift.
 
int32 export_date_
 Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past.
 

Static Public Attributes

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

Detailed Description

Contains result of gift upgrading.

Definition at line 83432 of file td_api.h.

Constructor & Destructor Documentation

◆ upgradeGiftResult() [1/2]

td::td_api::upgradeGiftResult::upgradeGiftResult ( )

Contains result of gift upgrading.

◆ upgradeGiftResult() [2/2]

td::td_api::upgradeGiftResult::upgradeGiftResult ( object_ptr< upgradedGift > &&  gift_,
string const &  received_gift_id_,
bool  is_saved_,
bool  can_be_transferred_,
int53  transfer_star_count_,
int53  drop_original_details_star_count_,
int32  next_transfer_date_,
int32  next_resale_date_,
int32  export_date_ 
)

Contains result of gift upgrading.

Parameters
[in]gift_The upgraded gift.
[in]received_gift_id_Unique identifier of the received gift for the current user.
[in]is_saved_True, if the gift is displayed on the user&#x27;s or the channel&#x27;s profile page.
[in]can_be_transferred_True, if the gift can be transferred to another owner.
[in]transfer_star_count_Number of Telegram Stars that must be paid to transfer the upgraded gift.
[in]drop_original_details_star_count_Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available.
[in]next_transfer_date_Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn&#x27;t possible.
[in]next_resale_date_Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can&#x27;t be resold; only for the receiver of the gift.
[in]export_date_Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past.

Member Function Documentation

◆ store()

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

◆ can_be_transferred_

bool td::td_api::upgradeGiftResult::can_be_transferred_

True, if the gift can be transferred to another owner.

Definition at line 83449 of file td_api.h.

◆ drop_original_details_star_count_

int53 td::td_api::upgradeGiftResult::drop_original_details_star_count_

Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available.

Definition at line 83453 of file td_api.h.

◆ export_date_

int32 td::td_api::upgradeGiftResult::export_date_

Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past.

Definition at line 83459 of file td_api.h.

◆ gift_

object_ptr<upgradedGift> td::td_api::upgradeGiftResult::gift_

The upgraded gift.

Definition at line 83443 of file td_api.h.

◆ ID

const std::int32_t td::td_api::upgradeGiftResult::ID = 965145418
static

Identifier uniquely determining a type of the object.

Definition at line 83482 of file td_api.h.

◆ is_saved_

bool td::td_api::upgradeGiftResult::is_saved_

True, if the gift is displayed on the user&#x27;s or the channel&#x27;s profile page.

Definition at line 83447 of file td_api.h.

◆ next_resale_date_

int32 td::td_api::upgradeGiftResult::next_resale_date_

Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can&#x27;t be resold; only for the receiver of the gift.

Definition at line 83457 of file td_api.h.

◆ next_transfer_date_

int32 td::td_api::upgradeGiftResult::next_transfer_date_

Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn&#x27;t possible.

Definition at line 83455 of file td_api.h.

◆ received_gift_id_

string td::td_api::upgradeGiftResult::received_gift_id_

Unique identifier of the received gift for the current user.

Definition at line 83445 of file td_api.h.

◆ transfer_star_count_

int53 td::td_api::upgradeGiftResult::transfer_star_count_

Number of Telegram Stars that must be paid to transfer the upgraded gift.

Definition at line 83451 of file td_api.h.


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