Kind,Zutat,Tagesplan,Mahlzeit
This commit is contained in:
parent
ce161a6caf
commit
7422271b9d
41
src/main/java/de/subway_surfers/vpr_app/logik/Kind.java
Normal file
41
src/main/java/de/subway_surfers/vpr_app/logik/Kind.java
Normal file
@ -0,0 +1,41 @@
|
||||
package de.subway_surfers.vpr_app.logik;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Kind {
|
||||
private String name;
|
||||
private String vorname;
|
||||
private int id;
|
||||
private ArrayList<Zutat> filter;
|
||||
|
||||
public Kind(String name, String vorname, int id) {
|
||||
ArrayList<Zutat> filter = new ArrayList<>();
|
||||
this.name = name;
|
||||
this.vorname = vorname;
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getVorname() {
|
||||
return vorname;
|
||||
}
|
||||
|
||||
public void setVorname(String vorname) {
|
||||
this.vorname = vorname;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public ArrayList<Zutat> getFilter() {
|
||||
return filter;
|
||||
}
|
||||
}
|
34
src/main/java/de/subway_surfers/vpr_app/logik/Mahlzeit.java
Normal file
34
src/main/java/de/subway_surfers/vpr_app/logik/Mahlzeit.java
Normal file
@ -0,0 +1,34 @@
|
||||
package de.subway_surfers.vpr_app.logik;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Mahlzeit {
|
||||
private String name;
|
||||
private float preis;
|
||||
private ArrayList<Zutat> zutaten;
|
||||
private String beschreibung;
|
||||
|
||||
public Mahlzeit (String name, float preis, String beschreibung) {
|
||||
this.name = name;
|
||||
this.preis = preis;
|
||||
this.beschreibung = beschreibung;
|
||||
zutaten = new ArrayList<>();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public float getPreis() {
|
||||
return preis;
|
||||
}
|
||||
|
||||
public ArrayList<Zutat> getZutaten() {
|
||||
return zutaten;
|
||||
}
|
||||
|
||||
public String getBeschreibung() {
|
||||
return beschreibung;
|
||||
}
|
||||
|
||||
}
|
22
src/main/java/de/subway_surfers/vpr_app/logik/Tagesplan.java
Normal file
22
src/main/java/de/subway_surfers/vpr_app/logik/Tagesplan.java
Normal file
@ -0,0 +1,22 @@
|
||||
package de.subway_surfers.vpr_app.logik;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Tagesplan {
|
||||
|
||||
private ArrayList<Mahlzeit> gerichte;
|
||||
private String datum;
|
||||
|
||||
public Tagesplan(String datum) {
|
||||
this.datum = datum;
|
||||
}
|
||||
|
||||
public ArrayList<Mahlzeit> getGerichte() {
|
||||
return gerichte;
|
||||
}
|
||||
|
||||
public String getDatum() {
|
||||
return datum;
|
||||
}
|
||||
|
||||
}
|
12
src/main/java/de/subway_surfers/vpr_app/logik/Zutat.java
Normal file
12
src/main/java/de/subway_surfers/vpr_app/logik/Zutat.java
Normal file
@ -0,0 +1,12 @@
|
||||
package de.subway_surfers.vpr_app.logik;
|
||||
|
||||
public class Zutat {
|
||||
private String name;
|
||||
public Zutat (String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName(){
|
||||
return this.name;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user