Kind,Zutat,Tagesplan,Mahlzeit

This commit is contained in:
SvenAlte 2023-12-13 09:52:45 +01:00
parent ce161a6caf
commit 7422271b9d
4 changed files with 109 additions and 0 deletions

View 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;
}
}

View 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;
}
}

View 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;
}
}

View 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;
}
}