Class User


  • public class User
    extends Object
    Receives data from the server database for users. This also includes enumerated types from the User.Genre enums.
    • Constructor Detail

      • User

        public User()
    • Method Detail

      • getId

        public long getId()
        Returns the auto-generated id for the clip.
        Returns:
      • setId

        public void setId​(long id)
        Sets the auto-generated id for the clip.
        Parameters:
        id - The id to be set.
      • getUsername

        public String getUsername()
        Returns the username of the user.
        Returns:
      • setUsername

        public void setUsername​(String username)
        Sets the username of the user.
        Parameters:
        username - The username to be set.
      • getEmail

        public String getEmail()
        Returns the email of the user.
        Returns:
      • setEmail

        public void setEmail​(String email)
        Sets the email of the user.
        Parameters:
        email - The email to be set.
      • getGenre

        public User.Genre getGenre()
        Returns the current favorite genre of the user.
        Returns:
      • setGenre

        public void setGenre​(User.Genre genre)
        Sets the current favorite genre of the user.
        Parameters:
        genre - The current favorite genre of the user.