Class WeatherContentManager


  • public class WeatherContentManager
    extends java.lang.Object
    • Field Detail

      • FORECAST_URI_SINLGE

        public static final Uri FORECAST_URI_SINLGE
      • FORECAST_URI_ALL

        public static final Uri FORECAST_URI_ALL
      • WARNING_URI_SINLGE

        public static final Uri WARNING_URI_SINLGE
      • WARNING_URI_ALL

        public static final Uri WARNING_URI_ALL
      • TEXT_URI_SINLGE

        public static final Uri TEXT_URI_SINLGE
      • TEXT_URI_ALL

        public static final Uri TEXT_URI_ALL
      • AREA_URI_SINLGE

        public static final Uri AREA_URI_SINLGE
      • AREA_URI_ALL

        public static final Uri AREA_URI_ALL
    • Constructor Detail

      • WeatherContentManager

        public WeatherContentManager()
    • Method Detail

      • serializeString

        public static java.lang.String serializeString​(java.lang.String[] s)
      • serializeStringFromArrayList

        public static java.lang.String serializeStringFromArrayList​(java.util.ArrayList<java.lang.String> s)
      • deSerializeString

        public static java.lang.String[] deSerializeString​(java.lang.String s)
      • deSerializeStringToArraylist

        public static java.util.ArrayList<java.lang.String> deSerializeStringToArraylist​(java.lang.String s)
      • getContentValuesFromWeatherCard

        public static ContentValues getContentValuesFromWeatherCard​(RawWeatherInfo rawWeatherInfo)
      • getRawWeatherInfoFromCursor

        public static RawWeatherInfo getRawWeatherInfoFromCursor​(Cursor c)
      • getWeatherInfo

        public static CurrentWeatherInfo getWeatherInfo​(Context context,
                                                        Cursor cursor)
      • getContentValuesFromWeatherWarning

        public static ContentValues getContentValuesFromWeatherWarning​(WeatherWarning weatherWarning)
      • getWeatherWarningFromCursor

        public static WeatherWarning getWeatherWarningFromCursor​(Cursor c)
      • getContentValuesFromTextForecast

        public static ContentValues getContentValuesFromTextForecast​(TextForecast textForecast)
      • getTextForecastFromCursor

        public static TextForecast getTextForecastFromCursor​(Cursor c)
      • getContentValuesFromArea

        public static ContentValues getContentValuesFromArea​(Areas.Area area)
      • getAreaFromCursor

        public static Areas.Area getAreaFromCursor​(Cursor c)
      • getAreaNameFromCursor

        public static java.lang.String getAreaNameFromCursor​(Cursor c)
      • getWarncellIDFromCursor

        public static java.lang.String getWarncellIDFromCursor​(Cursor c)
      • checkForDatabaseUpgrade

        public static int checkForDatabaseUpgrade​(Context c)