Class DataStorage.Updates

  • Enclosing class:
    DataStorage

    public static class DataStorage.Updates
    extends java.lang.Object
    • Field Detail

      • 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
    • Constructor Detail

      • Updates

        public Updates()
    • 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)