Class CurrentWeatherInfo
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.CurrentWeatherInfo
-
public class CurrentWeatherInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.text.SimpleDateFormat
dateAndHourDateFormat
static java.lang.String
EMPTY_TAG
static int
MOSMIX_PUBLICATION_DELAY
static int
MOSMIX_UPDATE_INTERVAL
-
Constructor Summary
Constructors Constructor Description CurrentWeatherInfo()
CurrentWeatherInfo(Context context, RawWeatherInfo rawWeatherInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCity()
java.lang.String
getHumanReadableIssueTime()
java.lang.String
getHumanReadablePollingTime()
long
getWhenNewServerDataExpected()
java.util.ArrayList<Weather.WindData>
getWindForecast(int number)
boolean
isNewServerDataExpected()
Checks if new Mosmix data can be expected on the DWD server.java.lang.Integer
setSunDurationFromClouds(Weather.WeatherInfo weatherInfo)
void
setToEmpty()
-
-
-
Field Detail
-
EMPTY_TAG
public static final java.lang.String EMPTY_TAG
- See Also:
- Constant Field Values
-
MOSMIX_UPDATE_INTERVAL
public static final int MOSMIX_UPDATE_INTERVAL
- See Also:
- Constant Field Values
-
MOSMIX_PUBLICATION_DELAY
public static final int MOSMIX_PUBLICATION_DELAY
- See Also:
- Constant Field Values
-
dateAndHourDateFormat
public final java.text.SimpleDateFormat dateAndHourDateFormat
-
-
Constructor Detail
-
CurrentWeatherInfo
public CurrentWeatherInfo()
-
CurrentWeatherInfo
public CurrentWeatherInfo(Context context, RawWeatherInfo rawWeatherInfo)
-
-
Method Detail
-
setToEmpty
public void setToEmpty()
-
getCity
public java.lang.String getCity()
-
getWindForecast
public java.util.ArrayList<Weather.WindData> getWindForecast(int number)
-
setSunDurationFromClouds
public java.lang.Integer setSunDurationFromClouds(Weather.WeatherInfo weatherInfo)
-
isNewServerDataExpected
public boolean isNewServerDataExpected()
Checks if new Mosmix data can be expected on the DWD server.- Returns:
- true, if new data can be expected.
-
getWhenNewServerDataExpected
public long getWhenNewServerDataExpected()
-
getHumanReadableIssueTime
public java.lang.String getHumanReadableIssueTime()
-
getHumanReadablePollingTime
public java.lang.String getHumanReadablePollingTime()
-
-