BrightSky nullable

This commit is contained in:
Patrick Haßel 2025-03-04 12:12:07 +01:00
parent 49ce44eff9
commit d81034e6c4

View File

@ -60,6 +60,18 @@ public class BrightSkyDto {
this.timestamp = timestamp.withZoneSameInstant(TimeZone.getDefault().toZoneId()); this.timestamp = timestamp.withZoneSameInstant(TimeZone.getDefault().toZoneId());
} }
public double getSolar() {
return solar == null ? 0.0 : solar;
}
public double getCloud_cover() {
return cloud_cover == null ? 0.0 : cloud_cover;
}
public double getPrecipitation() {
return precipitation == null ? 0.0 : precipitation;
}
} }
} }