Package it.tdlight.jni
Class TdApi.IdentityDocument
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.IdentityDocument
- Enclosing class:
- TdApi
public static class TdApi.IdentityDocument extends TdApi.Object
An identity document.
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
TdApi.Date
expiryDate
Document expiry date; may be null.TdApi.DatedFile
frontSide
Front side of the document.String
number
Document number; 1-24 characters.TdApi.DatedFile
reverseSide
Reverse side of the document; only for driver license and identity card.TdApi.DatedFile
selfie
Selfie with the document; may be null.TdApi.DatedFile[]
translation
List of files containing a certified English translation of the document. -
Constructor Summary
Constructors Constructor Description IdentityDocument()
An identity document.IdentityDocument(DataInput input)
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 Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods 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. -
frontSide
Front side of the document. -
reverseSide
Reverse side of the document; only for driver license and identity card. -
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 CONSTRUCTOR- See Also:
- Constant Field Values
-
-
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
- String Document number; 1-24 characters.expiryDate
- Date Document expiry date; may be null.frontSide
- DatedFile Front side of the document.reverseSide
- DatedFile Reverse side of the document; only for driver license and identity card.selfie
- DatedFile Selfie with the document; may be null.translation
- DatedFile[] List of files containing a certified English translation of the document.
-
IdentityDocument
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-