Package it.ernytech.tdlib
Class TdApi.SetAuthenticationPhoneNumber
- java.lang.Object
-
- it.ernytech.tdlib.TdApi.Object
-
- it.ernytech.tdlib.TdApi.Function
-
- it.ernytech.tdlib.TdApi.SetAuthenticationPhoneNumber
-
- Enclosing class:
- TdApi
public static class TdApi.SetAuthenticationPhoneNumber extends TdApi.Function
Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber.Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description boolean
allowFlashCall
Pass true if the authentication code may be sent via flash call to the specified phone number.static int
CONSTRUCTOR
Identifier uniquely determining type of the object.boolean
isCurrentPhoneNumber
Pass true if the phone number is used on the current device.java.lang.String
phoneNumber
The phone number of the user, in international format.
-
Constructor Summary
Constructors Constructor Description SetAuthenticationPhoneNumber()
Default constructor.SetAuthenticationPhoneNumber(java.lang.String phoneNumber, boolean allowFlashCall, boolean isCurrentPhoneNumber)
Constructor for initialization of all fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getConstructor()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class it.ernytech.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
phoneNumber
public java.lang.String phoneNumber
The phone number of the user, in international format.
-
allowFlashCall
public boolean allowFlashCall
Pass true if the authentication code may be sent via flash call to the specified phone number.
-
isCurrentPhoneNumber
public boolean isCurrentPhoneNumber
Pass true if the phone number is used on the current device. Ignored if allowFlashCall is false.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SetAuthenticationPhoneNumber
public SetAuthenticationPhoneNumber()
Default constructor.
-
SetAuthenticationPhoneNumber
public SetAuthenticationPhoneNumber(java.lang.String phoneNumber, boolean allowFlashCall, boolean isCurrentPhoneNumber)
Constructor for initialization of all fields.- Parameters:
phoneNumber
- The phone number of the user, in international format.allowFlashCall
- Pass true if the authentication code may be sent via flash call to the specified phone number.isCurrentPhoneNumber
- Pass true if the phone number is used on the current device. Ignored if allowFlashCall is false.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
-