Skip to content

Commit

Permalink
UserAccount javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimin15 committed Apr 27, 2024
1 parent 6aff005 commit 587a12d
Showing 1 changed file with 36 additions and 8 deletions.
44 changes: 36 additions & 8 deletions app/src/main/java/com/example/proj2/UserAccount.java
Original file line number Diff line number Diff line change
@@ -1,42 +1,70 @@
package com.example.proj2; // Package declaration indicating the location of the class

/**
* UserAccount Class
* The UserAccount class represents a user's account information.
* It stores the user's email ID, password, and Firebase UID (user identification token).
*/
public class UserAccount {
private String emailId; // Private field to store the user's email ID
private String password; // Private field to store the user's password
private String idToken; // Private field to store the Firebase UID (user identification token)

// Default constructor
/**
* Constructs a new UserAccount object with default values.
*/
public UserAccount() {}

// Getter method for retrieving the Firebase UID
/**
* Retrieves the Firebase UID (user identification token) associated with this user account.
*
* @return The Firebase UID (user identification token)
*/
public String getIdToken() {
return idToken;
}

// Setter method for setting the Firebase UID

/**
* Sets the Firebase UID (user identification token) for this user account.
*
* @param idToken The Firebase UID (user identification token) to set
*/
public void setIdToken(String idToken) {
this.idToken = idToken;
}

// Getter method for retrieving the user's email ID
/**
* Retrieves the email ID associated with this user account.
*
* @return The email ID
*/
public String getEmailId() {
return emailId;
}

// Setter method for setting the user's email ID
/**
* Sets the email ID for this user account.
*
* @param emailId The email ID to set
*/
public void setEmailId(String emailId) {
this.emailId = emailId;
}

// Setter method for setting the user's password
/**
* Sets the password for this user account.
*
* @param password The password to set
*/
public void setPassword(String password) {
this.password = password;
}

// Getter method for retrieving the user's password
/**
* Retrieves the password associated with this user account.
*
* @return The password
*/
public String getPassword() {
return password;
}
Expand Down

0 comments on commit 587a12d

Please sign in to comment.