Class DataStorage.Updates
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.DataStorage.Updates
-
- Enclosing class:
- DataStorage
public static class DataStorage.Updates extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
DataStorage.Updates.Category
class
DataStorage.Updates.Intervals
-
Field Summary
Fields Modifier and Type Field Description static int
CategoryItemsCount
static int
DATASTORAGE_UPDATE_LAYERS_LASTUPDATE
static int
DATASTORAGE_UPDATE_POLLEN_LASTUPDATE
static int
DATASTORAGE_UPDATE_TEXTS_LASTUPDATE
static int
DATASTORAGE_UPDATE_WARNINGS_LASTUPDATE
static int
DATASTORAGE_UPDATE_WEATHER_LASTUPDATE
-
Constructor Summary
Constructors Constructor Description Updates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
getLastUpdate(Context context, int category)
static long
getMillis(int interval)
static boolean
isSyncDue(Context context, int category)
static boolean
isSyncNecessary(Context context)
static void
setLastUpdate(Context context, int category, long updateTime)
-
-
-
Field Detail
-
CategoryItemsCount
public static final int CategoryItemsCount
- See Also:
- Constant Field Values
-
DATASTORAGE_UPDATE_WEATHER_LASTUPDATE
public static final int DATASTORAGE_UPDATE_WEATHER_LASTUPDATE
- See Also:
- Constant Field Values
-
DATASTORAGE_UPDATE_WARNINGS_LASTUPDATE
public static final int DATASTORAGE_UPDATE_WARNINGS_LASTUPDATE
- See Also:
- Constant Field Values
-
DATASTORAGE_UPDATE_TEXTS_LASTUPDATE
public static final int DATASTORAGE_UPDATE_TEXTS_LASTUPDATE
- See Also:
- Constant Field Values
-
DATASTORAGE_UPDATE_POLLEN_LASTUPDATE
public static final int DATASTORAGE_UPDATE_POLLEN_LASTUPDATE
- See Also:
- Constant Field Values
-
DATASTORAGE_UPDATE_LAYERS_LASTUPDATE
public static final int DATASTORAGE_UPDATE_LAYERS_LASTUPDATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMillis
public static long getMillis(int interval)
-
getLastUpdate
public static long getLastUpdate(Context context, int category)
-
setLastUpdate
public static void setLastUpdate(Context context, int category, long updateTime)
-
isSyncDue
public static boolean isSyncDue(Context context, int category)
-
isSyncNecessary
public static boolean isSyncNecessary(Context context)
-
-