TDLib
Loading...
Searching...
No Matches
td::td_api::profilePhoto Class Referencefinal

Inherits td::td_api::Object.

Public Member Functions

 profilePhoto ()
 
 profilePhoto (int64 id_, object_ptr< file > &&small_, object_ptr< file > &&big_, object_ptr< minithumbnail > &&minithumbnail_, bool has_animation_, bool is_personal_)
 
std::int32_t get_id () const final
 
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

int64 id_
 Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos.
 
object_ptr< filesmall_
 A small (160x160) user profile photo. The file can be downloaded only before the photo is changed.
 
object_ptr< filebig_
 A big (640x640) user profile photo. The file can be downloaded only before the photo is changed.
 
object_ptr< minithumbnailminithumbnail_
 User profile photo minithumbnail; may be null.
 
bool has_animation_
 True, if the photo has animated variant.
 
bool is_personal_
 True, if the photo is visible only for the current user.
 

Static Public Attributes

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

Detailed Description

Describes a user profile photo.

Constructor & Destructor Documentation

◆ profilePhoto() [1/2]

td::td_api::profilePhoto::profilePhoto ( )

Describes a user profile photo.

◆ profilePhoto() [2/2]

td::td_api::profilePhoto::profilePhoto ( int64  id_,
object_ptr< file > &&  small_,
object_ptr< file > &&  big_,
object_ptr< minithumbnail > &&  minithumbnail_,
bool  has_animation_,
bool  is_personal_ 
)

Describes a user profile photo.

Parameters
[in]id_Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos.
[in]small_A small (160x160) user profile photo. The file can be downloaded only before the photo is changed.
[in]big_A big (640x640) user profile photo. The file can be downloaded only before the photo is changed.
[in]minithumbnail_User profile photo minithumbnail; may be null.
[in]has_animation_True, if the photo has animated variant.
[in]is_personal_True, if the photo is visible only for the current user.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::profilePhoto::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

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


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