Package org.localify.user.support
Class UserFeedback
java.lang.Object
org.localify.user.support.UserFeedback
Represents user feedback.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor.UserFeedback(User user, String entry) Creates a new user feedback. -
Method Summary
Modifier and TypeMethodDescriptionGets the creation timestamp.getEmail()Gets the email.getEntry()Gets the feedback entry.getId()Gets the ID.getUser()Gets the user.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp.voidSets the email.voidSets the feedback entry.voidSets the ID.voidSets the user.toDto()Converts the user feedback to a DTO.
-
Constructor Details
-
UserFeedback
protected UserFeedback()Default constructor. -
UserFeedback
Creates a new user feedback.- Parameters:
user- The user.entry- The feedback entry.
-
-
Method Details
-
getEmail
Gets the email.- Returns:
- The email.
-
setEmail
Sets the email.- Parameters:
email- The email.
-
getId
Gets the ID.- Returns:
- The ID.
-
getUser
Gets the user.- Returns:
- The user.
-
setUser
Sets the user.- Parameters:
user- The user.
-
getCreatedAt
Gets the creation timestamp.- Returns:
- The creation timestamp.
-
getEntry
Gets the feedback entry.- Returns:
- The feedback entry.
-
setEntry
Sets the feedback entry.- Parameters:
entry- The feedback entry.
-
setId
Sets the ID.- Parameters:
id- The ID.
-
setCreatedAt
Sets the creation timestamp.- Parameters:
createdAt- The creation timestamp.
-
toDto
Converts the user feedback to a DTO.- Returns:
- The DTO.
-