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.Genreenums.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUser.GenreTheGenreenum 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 StringgetEmail()Returns the email of the user.User.GenregetGenre()Returns the current favorite genre of the user.longgetId()Returns the auto-generated id for the clip.StringgetUsername()Returns the username of the user.voidsetEmail(String email)Sets the email of the user.voidsetGenre(User.Genre genre)Sets the current favorite genre of the user.voidsetId(long id)Sets the auto-generated id for the clip.voidsetUsername(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.
-
-