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

Inherits AuthorizationState.

Description

TDLib needs the user's authentication code sent to an email address to authorize. Call checkAuthenticationEmailCode to provide the code.

Public Member Functions

 authorizationStateWaitEmailCode ()
 authorizationStateWaitEmailCode (bool allow_apple_id_, bool allow_google_id_, object_ptr< emailAddressAuthenticationCodeInfo > &&code_info_, object_ptr< EmailAddressResetState > &&email_address_reset_state_)
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

bool allow_apple_id_
 True, if authorization through Apple ID is allowed.
bool allow_google_id_
 True, if authorization through Google ID is allowed.
object_ptr< emailAddressAuthenticationCodeInfo > code_info_
 Information about the sent authentication code.
object_ptr< EmailAddressResetState > email_address_reset_state_
 Reset state of the email address; may be null if the email address can't be reset.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ authorizationStateWaitEmailCode() [1/2]

authorizationStateWaitEmailCode ( )

TDLib needs the user's authentication code sent to an email address to authorize. Call checkAuthenticationEmailCode to provide the code.

◆ authorizationStateWaitEmailCode() [2/2]

authorizationStateWaitEmailCode ( bool allow_apple_id_,
bool allow_google_id_,
object_ptr< emailAddressAuthenticationCodeInfo > && code_info_,
object_ptr< EmailAddressResetState > && email_address_reset_state_ )

TDLib needs the user's authentication code sent to an email address to authorize. Call checkAuthenticationEmailCode to provide the code.

Parameters
[in]allow_apple_id_True, if authorization through Apple ID is allowed.
[in]allow_google_id_True, if authorization through Google ID is allowed.
[in]code_info_Information about the sent authentication code.
[in]email_address_reset_state_Reset state of the email address; may be null if the email address can't be reset.

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: