Food, User

This commit is contained in:
2023-01-27 15:14:36 +01:00
parent b97fe83f40
commit a0eed3ce51
10 changed files with 366 additions and 100 deletions

View File

@@ -0,0 +1,55 @@
package com.bib.essensbestellungsverwaltung;
public class User {
private long id;
private String name;
private String firstname;
private String password;
private String email;
private Address address;
private boolean isWorker;
private boolean isParent;
public User(long id, String name, String firstname, String password, String email, Address address, boolean isWorker, boolean isParent) {
this.id = id;
this.name = name;
this.firstname = firstname;
this.password = password;
this.email = email;
this.address = address;
this.isWorker = isWorker;
this.isParent = isParent;
}
public long getId() {
return id;
}
public String getName() {
return name;
}
public String getFirstname() {
return firstname;
}
public String getPassword() {
return password;
}
public String getEmail() {
return email;
}
public Address getAddress() {
return address;
}
public boolean isWorker() {
return isWorker;
}
public boolean isParent() {
return isParent;
}
}