From 1e6cb8ba1b4f19f6ab96880d214273e4f4d56666 Mon Sep 17 00:00:00 2001 From: elarturo Date: Tue, 22 Oct 2024 10:45:29 +0200 Subject: [PATCH] =?UTF-8?q?Bestellung=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../informatik/domain/Bestellung.java | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Online_Shop/src/de/hs_mannheim/informatik/domain/Bestellung.java diff --git a/Online_Shop/src/de/hs_mannheim/informatik/domain/Bestellung.java b/Online_Shop/src/de/hs_mannheim/informatik/domain/Bestellung.java new file mode 100644 index 0000000..ef42943 --- /dev/null +++ b/Online_Shop/src/de/hs_mannheim/informatik/domain/Bestellung.java @@ -0,0 +1,53 @@ +package de.hs_mannheim.informatik.domain; + + +import java.util.ArrayList; + +public class Bestellung { + public final static ArrayList bestellungen = new ArrayList<>(); + + private Warenkorb warenkorb; + private String name; + private String anschrift; + private long bestelldatum; + + public Bestellung(Warenkorb warenkorb, long bestelldatum, String anschrift, String name) { + this.warenkorb = warenkorb; + this.bestelldatum = bestelldatum; + this.anschrift = anschrift; + this.name = name; + } + + public Warenkorb getWarenkorb() { + return warenkorb; + } + + public long getBestelldatum() { + return bestelldatum; + } + + public String getAnschrift() { + return anschrift; + } + + public String getName() { + return name; + } + + public void setWarenkorb(Warenkorb warenkorb) { + this.warenkorb = warenkorb; + } + + public void setBestelldatum(long bestelldatum) { + this.bestelldatum = bestelldatum; + } + + public void setAnschrift(String anschrift) { + this.anschrift = anschrift; + } + + public void setName(String name) { + this.name = name; + } + +}