Class WeatherContentManager

java.lang.Object
de.kaffeemitkoffein.tinyweatherforecastgermany.WeatherContentManager

public class WeatherContentManager extends Object
  • Field Details

    • 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
    • POLLENAREAS_URI_SINGLE

      public static final Uri POLLENAREAS_URI_SINGLE
    • POLLENAREAS_URI_ALL

      public static final Uri POLLENAREAS_URI_ALL
    • POLLEN_URI_SINGLE

      public static final Uri POLLEN_URI_SINGLE
    • POLLEN_URI_ALL

      public static final Uri POLLEN_URI_ALL
    • DATA_URI_SINGLE

      public static final Uri DATA_URI_SINGLE
    • DATA_URI_ALL

      public static final Uri DATA_URI_ALL
  • Constructor Details

    • WeatherContentManager

      public WeatherContentManager()
  • Method Details

    • serializeString

      public static String serializeString(String[] s)
    • serializeStringFromArrayList

      public static String serializeStringFromArrayList(ArrayList<String> s)
    • deSerializeString

      public static String[] deSerializeString(String s)
    • deSerializeStringToArraylist

      public static ArrayList<String> deSerializeStringToArraylist(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 String getAreaNameFromCursor(Cursor c)
    • getWarncellIDFromCursor

      public static String getWarncellIDFromCursor(Cursor c)
    • getContentValuesFromPollenArea

      public static ContentValues getContentValuesFromPollenArea(PollenArea pollenArea)
    • getPollenAreaFromCursor

      public static PollenArea getPollenAreaFromCursor(Cursor c)
    • getContentValuesFromPollen

      public static ContentValues getContentValuesFromPollen(Pollen pollen)
    • getPollenFromCursor

      public static Pollen getPollenFromCursor(Cursor c)
    • getContentValuesFromData_Blob

      public static ContentValues getContentValuesFromData_Blob(int id, byte[] blob)
    • getContentValuesFromData_Float

      public static ContentValues getContentValuesFromData_Float(int id, float value)
    • getContentValuesFromData_Int

      public static ContentValues getContentValuesFromData_Int(int id, int value)
    • getContentValuesFromData_Long

      public static ContentValues getContentValuesFromData_Long(int id, long value)
    • getContentValuesFromData_String

      public static ContentValues getContentValuesFromData_String(int id, String value)
    • getContentValuesFromData_Boolean

      public static ContentValues getContentValuesFromData_Boolean(int id, boolean value)
    • getDataFromCursor

      public static DataPackage getDataFromCursor(Cursor cursor)
    • checkForDatabaseUpgrade

      public static int checkForDatabaseUpgrade(Context c)