Browse Source

refactoring: indentation in CreateUser

remotes/origin/hotfix/client/improve-chat-window-appearence
Richard Schmidt 11 months ago
parent
commit
45742edae1
  1. 60
      src/main/java/CreateUser.java

60
src/main/java/CreateUser.java

@ -27,70 +27,70 @@ class CreateUser {
// Constructor // Constructor
public CreateUser(String id, String name, String password, String birthday, String firstName, String surname) { public CreateUser(String id, String name, String password, String birthday, String firstName, String surname) {
this.id = id;
this.id = id;
this.userName = name; this.userName = name;
this.password = hashPassword(password);
this.birthday = birthday;
this.firstName = firstName;
this.surname = surname;
this.password = hashPassword(password);
this.birthday = birthday;
this.firstName = firstName;
this.surname = surname;
} }
// Getters and Setters // Getters and Setters
public String getId() { public String getId() {
return id; return id;
}
}
public void setId(String id) {
public void setId(String id) {
this.id = id; this.id = id;
}
}
public String getUserName() { public String getUserName() {
return userName;
return userName;
} }
public void setUserName(String userName) { public void setUserName(String userName) {
this.userName = userName;
this.userName = userName;
} }
public String getPassword() { public String getPassword() {
return password;
return password;
} }
public void setPassword(String password) { public void setPassword(String password) {
this.password = password;
this.password = password;
} }
public String getBirthday() { public String getBirthday() {
return birthday; return birthday;
} }
public void setBirthday(String birthday) {
public void setBirthday(String birthday) {
this.birthday = birthday; this.birthday = birthday;
}
}
public String getFirstName() {
return firstName;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String surname() {
return surname;
}
public String surname() {
return surname;
}
public void setSurname(String surname) {
this.surname = surname;
}
public void setSurname(String surname) {
this.surname = surname;
}
public boolean isStayLoggedIn() {
public boolean isStayLoggedIn() {
return stayLoggedIn; return stayLoggedIn;
}
}
public void setStayLoggedIn(boolean stayLoggedIn) {
public void setStayLoggedIn(boolean stayLoggedIn) {
this.stayLoggedIn = stayLoggedIn; this.stayLoggedIn = stayLoggedIn;
}
}
// Function to create user with validation // Function to create user with validation
public static CreateUser createUser(String id, String userName, String password, String birthday, String firstName, String surname) { public static CreateUser createUser(String id, String userName, String password, String birthday, String firstName, String surname) {

Loading…
Cancel
Save