Package org.drinkless.tdlib
Class TdApi.PhoneNumberAuthenticationSettings
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.PhoneNumberAuthenticationSettings
-
- Enclosing class:
- TdApi
public static class TdApi.PhoneNumberAuthenticationSettings extends TdApi.Object
Contains settings for the authentication of the user's phone number.
-
-
Field Summary
Fields Modifier and Type Field Description booleanallowFlashCallPass true if the authentication code may be sent via a flash call to the specified phone number.booleanallowMissedCallPass true if the authentication code may be sent via a missed call to the specified phone number.booleanallowSmsRetrieverApiFor official applications only.String[]authenticationTokensList of up to 20 authentication tokens, recently received in updateOption("authentication_token") in previously logged out sessions.static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanisCurrentPhoneNumberPass true if the authenticated phone number is used on the current device.
-
Constructor Summary
Constructors Constructor Description PhoneNumberAuthenticationSettings()Contains settings for the authentication of the user's phone number.PhoneNumberAuthenticationSettings(boolean allowFlashCall, boolean allowMissedCall, boolean isCurrentPhoneNumber, boolean allowSmsRetrieverApi, String[] authenticationTokens)Contains settings for the authentication of the user's phone number.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
allowFlashCall
public boolean allowFlashCall
Pass true if the authentication code may be sent via a flash call to the specified phone number.
-
allowMissedCall
public boolean allowMissedCall
Pass true if the authentication code may be sent via a missed call to the specified phone number.
-
isCurrentPhoneNumber
public boolean isCurrentPhoneNumber
Pass true if the authenticated phone number is used on the current device.
-
allowSmsRetrieverApi
public boolean allowSmsRetrieverApi
For official applications only. True, if the application can use Android SMS Retriever API (requires Google Play Services >= 10.2) to automatically receive the authentication code from the SMS. See https://developers.google.com/identity/sms-retriever/ for more details.
-
authenticationTokens
public String[] authenticationTokens
List of up to 20 authentication tokens, recently received in updateOption("authentication_token") in previously logged out sessions.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PhoneNumberAuthenticationSettings
public PhoneNumberAuthenticationSettings()
Contains settings for the authentication of the user's phone number.
-
PhoneNumberAuthenticationSettings
public PhoneNumberAuthenticationSettings(boolean allowFlashCall, boolean allowMissedCall, boolean isCurrentPhoneNumber, boolean allowSmsRetrieverApi, String[] authenticationTokens)Contains settings for the authentication of the user's phone number.- Parameters:
allowFlashCall- Pass true if the authentication code may be sent via a flash call to the specified phone number.allowMissedCall- Pass true if the authentication code may be sent via a missed call to the specified phone number.isCurrentPhoneNumber- Pass true if the authenticated phone number is used on the current device.allowSmsRetrieverApi- For official applications only. True, if the application can use Android SMS Retriever API (requires Google Play Services >= 10.2) to automatically receive the authentication code from the SMS. See https://developers.google.com/identity/sms-retriever/ for more details.authenticationTokens- List of up to 20 authentication tokens, recently received in updateOption("authentication_token") in previously logged out sessions.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-