Class RegisterRequest
java.lang.Object
callofproject.dev.authentication.dto.auth.RegisterRequest
Data Transfer Object for a register request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the birth date.getEmail()Gets the email.Gets the first name.Gets the last name.Gets the middle name.Gets the password.Gets the username.voidsetBirth_date(LocalDate birth_date) Sets the birth date.voidSets the email.voidsetFirst_name(String first_name) Sets the first name.voidsetLast_name(String last_name) Sets the last name.voidsetMiddle_name(String middle_name) Sets the middle name.voidsetPassword(String password) Sets the password.voidsetUsername(String username) Sets the username.
-
Constructor Details
-
RegisterRequest
public RegisterRequest()Constructor. -
RegisterRequest
public RegisterRequest(String firstName, String lastName, String middleName, String username, String email, String password, LocalDate birthDate) Constructor.- Parameters:
firstName- The first name.lastName- The last name.middleName- The middle name.username- The username.email- The email.password- The password.birthDate- The birth date.
-
-
Method Details
-
getFirst_name
Gets the first name.- Returns:
- The first name.
-
setFirst_name
Sets the first name.- Parameters:
first_name- The first name.
-
getLast_name
Gets the last name.- Returns:
- The last name.
-
setLast_name
Sets the last name.- Parameters:
last_name- The last name.
-
getMiddle_name
Gets the middle name.- Returns:
- The middle name.
-
setMiddle_name
Sets the middle name.- Parameters:
middle_name- The middle name.
-
getUsername
Gets the username.- Returns:
- The username.
-
setUsername
Sets the username.- Parameters:
username- The username.
-
getEmail
Gets the email.- Returns:
- The email.
-
setEmail
Sets the email.- Parameters:
email- The email.
-
getPassword
Gets the password.- Returns:
- The password.
-
setPassword
Sets the password.- Parameters:
password- The password.
-
getBirth_date
Gets the birth date.- Returns:
- The birth date.
-
setBirth_date
Sets the birth date.- Parameters:
birth_date- The birth date.
-