feat: GardenPlan types and interfaces

Created the type and interface relating to the GardenPlan
This commit is contained in:
David Guler 2022-10-14 21:15:19 +02:00
parent 6d1fdd05ab
commit 9a29499c39
2 changed files with 22 additions and 0 deletions

View File

@ -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<UserPlanting> getPlantings();
void savePlanting(UserPlanting planting) throws IOException;
void removePlanting(UserPlanting planting) throws IOException;
}

View File

@ -0,0 +1,10 @@
package ch.zhaw.gartenverwaltung.types;
import java.util.Date;
public record UserPlanting(
long plantId,
Date startDate,
int area
) {
}