public static class TdApi.PhoneNumberInfo extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.CountryInfo |
country
Information about the country to which the phone number belongs; may be null.
|
java.lang.String |
countryCallingCode
The part of the phone number denoting country calling code or its part.
|
java.lang.String |
formattedPhoneNumber
The phone number without country calling code formatted accordingly to local rules.
|
boolean |
isAnonymous
True, if the phone number was bought at https://fragment.com and isn't tied to a SIM card.
|
| Constructor and Description |
|---|
PhoneNumberInfo()
Contains information about a phone number.
|
PhoneNumberInfo(TdApi.CountryInfo country,
java.lang.String countryCallingCode,
java.lang.String formattedPhoneNumber,
boolean isAnonymous)
Contains information about a phone number.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.CountryInfo country
public java.lang.String countryCallingCode
public java.lang.String formattedPhoneNumber
public boolean isAnonymous
public static final int CONSTRUCTOR
public PhoneNumberInfo()
public PhoneNumberInfo(TdApi.CountryInfo country, java.lang.String countryCallingCode, java.lang.String formattedPhoneNumber, boolean isAnonymous)
country - Information about the country to which the phone number belongs; may be null.countryCallingCode - The part of the phone number denoting country calling code or its part.formattedPhoneNumber - The phone number without country calling code formatted accordingly to local rules. Expected digits are returned as '-', but even more digits might be entered by the user.isAnonymous - True, if the phone number was bought at https://fragment.com and isn't tied to a SIM card. Information about the phone number can be received using getCollectibleItemInfo.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object