Class TextForecasts
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.TextForecasts
-
public class TextForecasts extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TextForecasts.TextForecastFile
static class
TextForecasts.TextForecastSource
static class
TextForecasts.Type
-
Constructor Summary
Constructors Constructor Description TextForecasts()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
cleanTextForecastDatabase(Context context)
static void
eraseTextForecastDatabase(Context context)
static java.lang.String
getLanguage(Context context)
static java.util.ArrayList<TextForecast>
getLatestTextForecastsOnly(Context context)
static java.util.ArrayList<TextForecast>
getNewTextForecasts(Context context, java.util.ArrayList<TextForecast> currentTextForecasts)
static Drawable
getTextForecastDrawable(Context context, int id)
static java.util.ArrayList<TextForecast>
getTextForecasts(Context context)
static java.util.ArrayList<TextForecasts.TextForecastSource>
getTextForecastSources(Context context)
static java.lang.String
getTypeString(Context context, TextForecast textForecast)
static void
writeTextForecastsToDatabaseUnconditionally(Context context, java.util.ArrayList<TextForecast> textForecasts)
-
-
-
Method Detail
-
writeTextForecastsToDatabaseUnconditionally
public static void writeTextForecastsToDatabaseUnconditionally(Context context, java.util.ArrayList<TextForecast> textForecasts)
-
getNewTextForecasts
public static java.util.ArrayList<TextForecast> getNewTextForecasts(Context context, java.util.ArrayList<TextForecast> currentTextForecasts)
-
getTextForecasts
public static java.util.ArrayList<TextForecast> getTextForecasts(Context context)
-
getLatestTextForecastsOnly
public static java.util.ArrayList<TextForecast> getLatestTextForecastsOnly(Context context)
-
eraseTextForecastDatabase
public static void eraseTextForecastDatabase(Context context)
-
cleanTextForecastDatabase
public static void cleanTextForecastDatabase(Context context)
-
getLanguage
public static java.lang.String getLanguage(Context context)
-
getTextForecastDrawable
public static Drawable getTextForecastDrawable(Context context, int id)
-
getTypeString
public static java.lang.String getTypeString(Context context, TextForecast textForecast)
-
getTextForecastSources
public static java.util.ArrayList<TextForecasts.TextForecastSource> getTextForecastSources(Context context)
-
-