Package com.pengrad.telegrambot.passport
Enum EncryptedPassportElement.Type
- java.lang.Object
-
- java.lang.Enum<EncryptedPassportElement.Type>
-
- com.pengrad.telegrambot.passport.EncryptedPassportElement.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EncryptedPassportElement.Type>
- Enclosing class:
- EncryptedPassportElement
public static enum EncryptedPassportElement.Type extends java.lang.Enum<EncryptedPassportElement.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description addressbank_statementdriver_licenseemailidentity_cardinternal_passportpassportpassport_registrationpersonal_detailsphone_numberrental_agreementtemporary_registrationutility_bill
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EncryptedPassportElement.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EncryptedPassportElement.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
personal_details
public static final EncryptedPassportElement.Type personal_details
-
passport
public static final EncryptedPassportElement.Type passport
-
driver_license
public static final EncryptedPassportElement.Type driver_license
-
identity_card
public static final EncryptedPassportElement.Type identity_card
-
internal_passport
public static final EncryptedPassportElement.Type internal_passport
-
address
public static final EncryptedPassportElement.Type address
-
utility_bill
public static final EncryptedPassportElement.Type utility_bill
-
bank_statement
public static final EncryptedPassportElement.Type bank_statement
-
rental_agreement
public static final EncryptedPassportElement.Type rental_agreement
-
passport_registration
public static final EncryptedPassportElement.Type passport_registration
-
temporary_registration
public static final EncryptedPassportElement.Type temporary_registration
-
phone_number
public static final EncryptedPassportElement.Type phone_number
-
email
public static final EncryptedPassportElement.Type email
-
-
Method Detail
-
values
public static EncryptedPassportElement.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EncryptedPassportElement.Type c : EncryptedPassportElement.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EncryptedPassportElement.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-