Class User


  • public class User
    extends java.lang.Object
    • Constructor Detail

      • User

        protected User()
    • 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 class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object