Package edu.cnm.deepdive.tunefull.model
Class User
- java.lang.Object
-
- edu.cnm.deepdive.tunefull.model.User
-
public class User extends Object
Receives data from the server database for users. This also includes enumerated types from theUser.Genre
enums.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
User.Genre
TheGenre
enum enumerates different musical genres that the user can select from for their favorite genre.
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEmail()
Returns the email of the user.User.Genre
getGenre()
Returns the current favorite genre of the user.long
getId()
Returns the auto-generated id for the clip.String
getUsername()
Returns the username of the user.void
setEmail(String email)
Sets the email of the user.void
setGenre(User.Genre genre)
Sets the current favorite genre of the user.void
setId(long id)
Sets the auto-generated id for the clip.void
setUsername(String username)
Sets the username of the 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.
-
-