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 SummaryNested Classes Modifier and Type Class Description static classUser.GenreTheGenreenum enumerates different musical genres that the user can select from for their favorite genre.
 - 
Constructor SummaryConstructors Constructor Description User()
 - 
Method SummaryAll 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- 
getIdpublic long getId() Returns the auto-generated id for the clip.- Returns:
 
 - 
setIdpublic void setId(long id) Sets the auto-generated id for the clip.- Parameters:
- id- The id to be set.
 
 - 
getUsernamepublic String getUsername() Returns the username of the user.- Returns:
 
 - 
setUsernamepublic void setUsername(String username) Sets the username of the user.- Parameters:
- username- The username to be set.
 
 - 
getEmailpublic String getEmail() Returns the email of the user.- Returns:
 
 - 
setEmailpublic void setEmail(String email) Sets the email of the user.- Parameters:
- email- The email to be set.
 
 - 
getGenrepublic User.Genre getGenre() Returns the current favorite genre of the user.- Returns:
 
 - 
setGenrepublic void setGenre(User.Genre genre) Sets the current favorite genre of the user.- Parameters:
- genre- The current favorite genre of the user.
 
 
- 
 
-