You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
41 lines
1.4 KiB
package com.mathlearning.model;
|
|
|
|
import java.io.Serializable;
|
|
|
|
public class User implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private String email;
|
|
private String username;
|
|
private String password;
|
|
private String verificationCode;
|
|
private boolean isRegistered;
|
|
|
|
public User(String email, String username) {
|
|
this.email = email;
|
|
this.username = username;
|
|
this.isRegistered = false;
|
|
}
|
|
|
|
public String getEmail() { return email; }
|
|
public void setEmail(String email) { this.email = email; }
|
|
|
|
public String getUsername() { return username; }
|
|
public void setUsername(String username) { this.username = username; }
|
|
|
|
public String getPassword() { return password; }
|
|
public void setPassword(String password) { this.password = password; }
|
|
|
|
public String getVerificationCode() { return verificationCode; }
|
|
public void setVerificationCode(String verificationCode) {
|
|
this.verificationCode = verificationCode;
|
|
}
|
|
|
|
public boolean isRegistered() { return isRegistered; }
|
|
public void setRegistered(boolean registered) { isRegistered = registered; }
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "User{username='" + username + "', email='" + email + "', registered=" + isRegistered + "}";
|
|
}
|
|
} |