Class PersonalInformation
java.lang.Object
com.example.skeddly.business.user.PersonalInformation
Represent's a user's personal information
-
Constructor Summary
ConstructorsConstructorDescriptionNo-arg constructor for PersonalInformation.PersonalInformation(String name, String email, String phoneNumber) Constructor for the user's PersonalInformation. -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()Gets the email of the usergetName()Gets the name of userGets the phone number of the userbooleanChecks if the personal information is fully filledvoidSets the email of the uservoidSets the name of the uservoidsetPhoneNumber(String phoneNumber) Sets the phone number of the user
-
Constructor Details
-
PersonalInformation
Constructor for the user's PersonalInformation. -
PersonalInformation
public PersonalInformation()No-arg constructor for PersonalInformation. Required by Firestore.
-
-
Method Details
-
getName
Gets the name of user- Returns:
- The name
-
setName
Sets the name of the user- Parameters:
name- The name
-
getEmail
Gets the email of the user- Returns:
- The email
-
setEmail
Sets the email of the user- Parameters:
email- The email
-
getPhoneNumber
Gets the phone number of the user- Returns:
- The phone number
-
setPhoneNumber
Sets the phone number of the user- Parameters:
phoneNumber- The phone number
-
isFullyFilled
public boolean isFullyFilled()Checks if the personal information is fully filled- Returns:
- True if it is fully filled. False otherwise.
-