swt23w23/src/main/java/catering/order/OrderType.java
Mathis Kral cb3a33651e Associate rentables with order and event explicitly
This closes #74

Co-authored-by: Theo Reichert <theo.reichert@mailbox.tu-dresden.de>
2023-12-07 17:06:43 +01:00

19 lines
393 B
Java

package catering.order;
public enum OrderType {
RENT_A_COOK,
EVENT_CATERING,
MOBILE_BREAKFAST,
PARTY_SERVICE;
public String toHumanReadable() {
return switch (this) {
case RENT_A_COOK -> "Miete einen Koch";
case EVENT_CATERING -> "Veranstaltungsbewirtung";
case MOBILE_BREAKFAST -> "Mobiles Frühstück";
case PARTY_SERVICE -> "Sausedienst";
default -> null;
};
}
}