Package com.jtelegram.api.user
Class User
- java.lang.Object
-
- com.jtelegram.api.user.User
-
public class User extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getFirstName()
java.lang.String
getFullname()
Gets the user's full name.long
getId()
java.lang.String
getLanguageCode()
java.lang.String
getLastName()
java.lang.String
getUsername()
java.lang.String
getUsernameFallbackName()
Tries the get the username of the user.int
hashCode()
boolean
isBot()
java.lang.String
toString()
-
-
-
Method Detail
-
getFullname
public java.lang.String getFullname()
Gets the user's full name.- Returns:
- The full name
-
getUsernameFallbackName
public java.lang.String getUsernameFallbackName()
Tries the get the username of the user. If it doesn't exist, it will fallback on getting the user the full name of the user.- Returns:
- The username fallback
-
getId
public long getId()
-
isBot
public boolean isBot()
-
getFirstName
public java.lang.String getFirstName()
-
getLastName
public java.lang.String getLastName()
-
getUsername
public java.lang.String getUsername()
-
getLanguageCode
public java.lang.String getLanguageCode()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-