diff --git a/src/main/java/ch/zhaw/gartenverwaltung/io/GardenPlan.java b/src/main/java/ch/zhaw/gartenverwaltung/io/GardenPlan.java new file mode 100644 index 0000000..94e1346 --- /dev/null +++ b/src/main/java/ch/zhaw/gartenverwaltung/io/GardenPlan.java @@ -0,0 +1,12 @@ +package ch.zhaw.gartenverwaltung.io; + +import ch.zhaw.gartenverwaltung.types.UserPlanting; + +import java.io.IOException; +import java.util.List; + +public interface GardenPlan { + List getPlantings(); + void savePlanting(UserPlanting planting) throws IOException; + void removePlanting(UserPlanting planting) throws IOException; +} diff --git a/src/main/java/ch/zhaw/gartenverwaltung/types/UserPlanting.java b/src/main/java/ch/zhaw/gartenverwaltung/types/UserPlanting.java new file mode 100644 index 0000000..804d388 --- /dev/null +++ b/src/main/java/ch/zhaw/gartenverwaltung/types/UserPlanting.java @@ -0,0 +1,10 @@ +package ch.zhaw.gartenverwaltung.types; + +import java.util.Date; + +public record UserPlanting( + long plantId, + Date startDate, + int area +) { +}