Untitled
accountModelunknown
plain_text
a year ago
3.5 kB
2
Indexable
Never
/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template */ package Models; import java.util.Date; /** * * @author HP */ public class Account { private int AccountID; private String avatar; private String username; private String password; private String email; private String firstName; private String lastName; private String gender; private Date birthday; private int role; public Account() { this.role=1; } public Account(int AccountID, String avatar, String username, String password, String email, String firstName, String lastName, String gender, Date birthday, int role) { this.AccountID = AccountID; this.avatar = avatar; this.username = username; this.password = password; this.email = email; this.firstName = firstName; this.lastName = lastName; this.gender = gender; this.birthday = birthday; this.role = role; } public Account(String avatar, String username, String password, String email, String firstName, String lastName, String gender, Date birthday, int role) { this.avatar = avatar; this.username = username; this.password = password; this.email = email; this.firstName = firstName; this.lastName = lastName; this.gender = gender; this.birthday = birthday; this.role = role; } public int getAccountID() { return AccountID; } public void setAccountID(int AccountID) { this.AccountID = AccountID; } public String getAvatar() { return avatar; } public void setAvatar(String avatar) { this.avatar = avatar; } 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 getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public String getGender() { return gender; } public void setGender(String gender) { this.gender = gender; } public Date getBirthday() { return birthday; } public void setBirthday(Date birthday) { this.birthday = birthday; } public int getRole() { return role; } public void setRole(int role) { this.role = role; } @Override public String toString() { return "Account{" + "AccountID=" + AccountID + ", avatar=" + avatar + ", username=" + username + ", password=" + password + ", email=" + email + ", firstName=" + firstName + ", lastName=" + lastName + ", gender=" + gender + ", birthday=" + birthday + ", role=" + role + '}'; } }