java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.PersonalDetails
- Enclosing class:
- TdApi
Contains the user's personal details.
-
Field Summary
Modifier and TypeFieldDescriptionBirthdate of the user.static final int
Identifier uniquely determining type of the object.A two-letter ISO 3166-1 alpha-2 country code of the user's country.First name of the user written in English; 1-255 characters.Gender of the user, "male" or "female".Last name of the user written in English; 1-255 characters.Middle name of the user written in English; 0-255 characters.Native first name of the user; 1-255 characters.Native last name of the user; 1-255 characters.Native middle name of the user; 0-255 characters.A two-letter ISO 3166-1 alpha-2 country code of the user's residence country. -
Constructor Summary
ConstructorDescriptionContains the user's personal details.PersonalDetails
(DataInput input) Contains the user's personal details.PersonalDetails
(String firstName, String middleName, String lastName, String nativeFirstName, String nativeMiddleName, String nativeLastName, TdApi.Date birthdate, String gender, String countryCode, String residenceCountryCode) Contains the user's personal details. -
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
-
firstName
First name of the user written in English; 1-255 characters. -
middleName
Middle name of the user written in English; 0-255 characters. -
lastName
Last name of the user written in English; 1-255 characters. -
nativeFirstName
Native first name of the user; 1-255 characters. -
nativeMiddleName
Native middle name of the user; 0-255 characters. -
nativeLastName
Native last name of the user; 1-255 characters. -
birthdate
Birthdate of the user. -
gender
Gender of the user, "male" or "female". -
countryCode
A two-letter ISO 3166-1 alpha-2 country code of the user's country. -
residenceCountryCode
A two-letter ISO 3166-1 alpha-2 country code of the user's residence country. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PersonalDetails
public PersonalDetails()Contains the user's personal details. -
PersonalDetails
public PersonalDetails(String firstName, String middleName, String lastName, String nativeFirstName, String nativeMiddleName, String nativeLastName, TdApi.Date birthdate, String gender, String countryCode, String residenceCountryCode) Contains the user's personal details.- Parameters:
firstName
- First name of the user written in English; 1-255 characters.middleName
- Middle name of the user written in English; 0-255 characters.lastName
- Last name of the user written in English; 1-255 characters.nativeFirstName
- Native first name of the user; 1-255 characters.nativeMiddleName
- Native middle name of the user; 0-255 characters.nativeLastName
- Native last name of the user; 1-255 characters.birthdate
- Birthdate of the user.gender
- Gender of the user, "male" or "female".countryCode
- A two-letter ISO 3166-1 alpha-2 country code of the user's country.residenceCountryCode
- A two-letter ISO 3166-1 alpha-2 country code of the user's residence country.
-
PersonalDetails
Contains the user's personal details.- 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()
-