java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.IdentityDocument
- Enclosing class:
- TdApi
An identity document.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Document expiry date; may be null if not applicable.Front side of the document.Document number; 1-24 characters.Reverse side of the document; only for driver license and identity card; may be null.Selfie with the document; may be null.List of files containing a certified English translation of the document. -
Constructor Summary
ConstructorDescriptionAn identity document.IdentityDocument
(DataInput input) An identity document.IdentityDocument
(String number, TdApi.Date expiryDate, TdApi.DatedFile frontSide, TdApi.DatedFile reverseSide, TdApi.DatedFile selfie, TdApi.DatedFile[] translation) An identity document. -
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
-
number
Document number; 1-24 characters. -
expiryDate
Document expiry date; may be null if not applicable. -
frontSide
Front side of the document. -
reverseSide
Reverse side of the document; only for driver license and identity card; may be null. -
selfie
Selfie with the document; may be null. -
translation
List of files containing a certified English translation of the document. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
IdentityDocument
public IdentityDocument()An identity document. -
IdentityDocument
public IdentityDocument(String number, TdApi.Date expiryDate, TdApi.DatedFile frontSide, TdApi.DatedFile reverseSide, TdApi.DatedFile selfie, TdApi.DatedFile[] translation) An identity document.- Parameters:
number
- Document number; 1-24 characters.expiryDate
- Document expiry date; may be null if not applicable.frontSide
- Front side of the document.reverseSide
- Reverse side of the document; only for driver license and identity card; may be null.selfie
- Selfie with the document; may be null.translation
- List of files containing a certified English translation of the document.
-
IdentityDocument
An identity document.- 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()
-