Added WateringCycle and Pest types
This commit is contained in:
parent
429ac16d98
commit
7355ce563f
|
@ -12,7 +12,7 @@ public record GrowthPhase(
|
||||||
MonthDay startDate,
|
MonthDay startDate,
|
||||||
MonthDay endDate,
|
MonthDay endDate,
|
||||||
int group,
|
int group,
|
||||||
Object wateringCycle,
|
WateringCycle wateringCycle,
|
||||||
@JsonDeserialize(using = GrowthPhaseTypeDeserializer.class) GrowthPhaseType type,
|
@JsonDeserialize(using = GrowthPhaseTypeDeserializer.class) GrowthPhaseType type,
|
||||||
@JsonDeserialize(using = HardinessZoneDeserializer.class) HardinessZone zone,
|
@JsonDeserialize(using = HardinessZoneDeserializer.class) HardinessZone zone,
|
||||||
List<TaskTemplate> taskTemplates) {
|
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,
|
String spacing,
|
||||||
int light,
|
int light,
|
||||||
String soil,
|
String soil,
|
||||||
List<Object> pests,
|
List<Pest> pests,
|
||||||
List<GrowthPhase> lifecycle) {
|
List<GrowthPhase> lifecycle) {
|
||||||
|
|
||||||
public void inZone(HardinessZone zone) {
|
public void inZone(HardinessZone zone) {
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
package ch.zhaw.gartenverwaltung.types;
|
||||||
|
|
||||||
|
public record WateringCycle(
|
||||||
|
int litersPerSqM,
|
||||||
|
int interval,
|
||||||
|
String[] notes
|
||||||
|
) {
|
||||||
|
}
|
|
@ -159,7 +159,7 @@
|
||||||
{
|
{
|
||||||
"name": "Rot",
|
"name": "Rot",
|
||||||
"description": "rot, any of several plant diseases, caused by any of hundreds of species of soil-borne bacteria, fungi, and funguslike organisms (Oomycota). Rot diseases are characterized by plant decomposition and putrefaction. The decay may be hard, dry, spongy, watery, mushy, or slimy and may affect any plant part.",
|
"description": "rot, any of several plant diseases, caused by any of hundreds of species of soil-borne bacteria, fungi, and funguslike organisms (Oomycota). Rot diseases are characterized by plant decomposition and putrefaction. The decay may be hard, dry, spongy, watery, mushy, or slimy and may affect any plant part.",
|
||||||
"measurement": "less water"
|
"measures": "less water"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -247,7 +247,7 @@
|
||||||
{
|
{
|
||||||
"name": "Rot",
|
"name": "Rot",
|
||||||
"description": "rot, any of several plant diseases, caused by any of hundreds of species of soil-borne bacteria, fungi, and funguslike organisms (Oomycota). Rot diseases are characterized by plant decomposition and putrefaction. The decay may be hard, dry, spongy, watery, mushy, or slimy and may affect any plant part.",
|
"description": "rot, any of several plant diseases, caused by any of hundreds of species of soil-borne bacteria, fungi, and funguslike organisms (Oomycota). Rot diseases are characterized by plant decomposition and putrefaction. The decay may be hard, dry, spongy, watery, mushy, or slimy and may affect any plant part.",
|
||||||
"measurement": "less water"
|
"measures": "less water"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue