BrightSky nullable
This commit is contained in:
parent
49ce44eff9
commit
d81034e6c4
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user