java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.PassportSuitableElement
- Enclosing class:
- TdApi
Contains information about a Telegram Passport element that was
requested by a service.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
True, if personal details must include the user's name in the language of their country of residence.boolean
True, if a selfie is required with the identity document.boolean
True, if a certified English translation is required with the document.Type of the element. -
Constructor Summary
ConstructorDescriptionContains information about a Telegram Passport element that was requested by a service.PassportSuitableElement
(TdApi.PassportElementType type, boolean isSelfieRequired, boolean isTranslationRequired, boolean isNativeNameRequired) Contains information about a Telegram Passport element that was requested by a service.PassportSuitableElement
(DataInput input) Contains information about a Telegram Passport element that was requested by a service. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
type
Type of the element. -
isSelfieRequired
public boolean isSelfieRequiredTrue, if a selfie is required with the identity document. -
isTranslationRequired
public boolean isTranslationRequiredTrue, if a certified English translation is required with the document. -
isNativeNameRequired
public boolean isNativeNameRequiredTrue, if personal details must include the user's name in the language of their country of residence. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PassportSuitableElement
public PassportSuitableElement()Contains information about a Telegram Passport element that was requested by a service. -
PassportSuitableElement
public PassportSuitableElement(TdApi.PassportElementType type, boolean isSelfieRequired, boolean isTranslationRequired, boolean isNativeNameRequired) Contains information about a Telegram Passport element that was requested by a service.- Parameters:
type
- Type of the element.isSelfieRequired
- True, if a selfie is required with the identity document.isTranslationRequired
- True, if a certified English translation is required with the document.isNativeNameRequired
- True, if personal details must include the user's name in the language of their country of residence.
-
PassportSuitableElement
Contains information about a Telegram Passport element that was requested by a service.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-