Added WateringCycle and Pest types
This commit is contained in:
@@ -12,7 +12,7 @@ public record GrowthPhase(
|
||||
MonthDay startDate,
|
||||
MonthDay endDate,
|
||||
int group,
|
||||
Object wateringCycle,
|
||||
WateringCycle wateringCycle,
|
||||
@JsonDeserialize(using = GrowthPhaseTypeDeserializer.class) GrowthPhaseType type,
|
||||
@JsonDeserialize(using = HardinessZoneDeserializer.class) HardinessZone zone,
|
||||
List<TaskTemplate> taskTemplates) {
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package ch.zhaw.gartenverwaltung.types;
|
||||
|
||||
public record Pest(String name, String description, String measures) {
|
||||
}
|
||||
@@ -12,7 +12,7 @@ public record Plant(
|
||||
String spacing,
|
||||
int light,
|
||||
String soil,
|
||||
List<Object> pests,
|
||||
List<Pest> pests,
|
||||
List<GrowthPhase> lifecycle) {
|
||||
|
||||
public void inZone(HardinessZone zone) {
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package ch.zhaw.gartenverwaltung.types;
|
||||
|
||||
public record WateringCycle(
|
||||
int litersPerSqM,
|
||||
int interval,
|
||||
String[] notes
|
||||
) {
|
||||
}
|
||||
Reference in New Issue
Block a user