java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.User
- Enclosing class:
- TdApi
Represents a user.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
First name of the user.boolean
If false, the user is inaccessible, and the only information known about the user is inside this class.long
User identifier.boolean
The user is a contact of the current user.boolean
True, if many users reported this user as a fake account.boolean
The user is a contact of the current user and the current user is a contact of the user.boolean
True, if many users reported this user as a scam.boolean
True, if the user is Telegram support account.boolean
True, if the user is verified.IETF language tag of the user's language; only available to bots.Last name of the user.Phone number of the user.Profile photo of the user; may be null.If non-empty, it contains a human-readable description of the reason why access to this user must be restricted.Current online status of the user.Type of the user.Username of the user. -
Constructor Summary
ConstructorDescriptionUser()
Represents a user.User
(long id, String firstName, String lastName, String username, String phoneNumber, TdApi.UserStatus status, TdApi.ProfilePhoto profilePhoto, boolean isContact, boolean isMutualContact, boolean isVerified, boolean isSupport, String restrictionReason, boolean isScam, boolean isFake, boolean haveAccess, TdApi.UserType type, String languageCode) Represents a user.Represents a user. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
id
public long idUser identifier. -
firstName
First name of the user. -
lastName
Last name of the user. -
username
Username of the user. -
phoneNumber
Phone number of the user. -
status
Current online status of the user. -
profilePhoto
Profile photo of the user; may be null. -
isContact
public boolean isContactThe user is a contact of the current user. -
isMutualContact
public boolean isMutualContactThe user is a contact of the current user and the current user is a contact of the user. -
isVerified
public boolean isVerifiedTrue, if the user is verified. -
isSupport
public boolean isSupportTrue, if the user is Telegram support account. -
restrictionReason
If non-empty, it contains a human-readable description of the reason why access to this user must be restricted. -
isScam
public boolean isScamTrue, if many users reported this user as a scam. -
isFake
public boolean isFakeTrue, if many users reported this user as a fake account. -
haveAccess
public boolean haveAccessIf false, the user is inaccessible, and the only information known about the user is inside this class. It can't be passed to any method except GetUser. -
type
Type of the user. -
languageCode
IETF language tag of the user's language; only available to bots. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
User
public User()Represents a user. -
User
public User(long id, String firstName, String lastName, String username, String phoneNumber, TdApi.UserStatus status, TdApi.ProfilePhoto profilePhoto, boolean isContact, boolean isMutualContact, boolean isVerified, boolean isSupport, String restrictionReason, boolean isScam, boolean isFake, boolean haveAccess, TdApi.UserType type, String languageCode) Represents a user.- Parameters:
id
- long User identifier.firstName
- String First name of the user.lastName
- String Last name of the user.username
- String Username of the user.phoneNumber
- String Phone number of the user.status
- UserStatus Current online status of the user.profilePhoto
- ProfilePhoto Profile photo of the user; may be null.isContact
- boolean The user is a contact of the current user.isMutualContact
- boolean The user is a contact of the current user and the current user is a contact of the user.isVerified
- boolean True, if the user is verified.isSupport
- boolean True, if the user is Telegram support account.restrictionReason
- String If non-empty, it contains a human-readable description of the reason why access to this user must be restricted.isScam
- boolean True, if many users reported this user as a scam.isFake
- boolean True, if many users reported this user as a fake account.haveAccess
- boolean If false, the user is inaccessible, and the only information known about the user is inside this class. It can't be passed to any method except GetUser.type
- UserType Type of the user.languageCode
- String IETF language tag of the user's language; only available to bots.
-
User
Represents a user.- 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()
-