Class GenericUser

  • Direct Known Subclasses:
    MatchedUser, SelfUser, SwipeableUser

    public abstract class GenericUser
    extends Entity
    Abstract top level class for users.
    Since:
    1.0.0
    Version:
    1.0.0
    Author:
    Kaktushose
    • Constructor Detail

      • GenericUser

        protected GenericUser​(DataObject user,
                              TinderClient client)
        Constructs a new GenericUser.
        Parameters:
        user - the DataObject to construct the GenericUser from
        client - the corresponding TinderClient instance
    • Method Detail

      • report

        public RestAction<Void> report​(String cause,
                                       String text)
        Reports the user.
        Parameters:
        cause - the report cause
        text - the detailed report text
        Returns:
        RestAction
      • getBio

        public String getBio()
        Gets the bio of the user.
        Returns:
        the bio of the user
      • getBirthdate

        public String getBirthdate()
        Gets the users' birthdate. Note: This does only display the real birthdate if it's the SelfUser.
        Returns:
        the users' birthdate
      • getName

        public String getName()
        Gets the name of the user.
        Returns:
        the name of the user
      • getGender

        public Gender getGender()
        Gets the Gender of the user.
        Returns:
        the Gender of the user.
      • hasBadges

        public boolean hasBadges()
        Whether this user has badges.
        Returns:
        true if this user has badges
        See Also:
        ()
      • getBadges

        public List<String> getBadges()
        Gets a possibly empty List the badges the user has.
        Returns:
        a possibly empty List the badges