Android Open Source - android-appwidget-cirrus Conditions From Project Back to project page android-appwidget-cirrus .
License The source code is released under:
MIT License
If you think the Android project android-appwidget-cirrus listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code /* Copyright 2014 Wayne D Grant (www.waynedgrant.com)
Licensed under the MIT License */
/ / f r o m w w w . j a v a 2 s . c o m
package com.waynedgrant.cirrus.measures;
public enum Conditions
{
SUNNY_1 (0, "Sunny" ),
CLEAR_NIGHT (1, "Clear Night" ),
CLOUDY_1 (2, "Cloudy" ),
CLOUDY_2 (3, "Cloudy" ),
CLOUDY_NIGHT (4, "Cloudy Night" ),
DRY_CLEAR (5, "Dry Clear" ),
FOG (6, "Fog" ),
HAZY (7, "Hazy" ),
HEAVY_RAIN (8, "Heavy Rain" ),
MAINLY_FINE (9, "Mainly Fine" ),
MISTY (10, "Misty" ),
NIGHT_FOG (11, "Night Fog" ),
NIGHT_HEAVY_RAIN (12, "Night Heavy Rain" ),
NIGHT_OVERCAST (13, "Night Overcast" ),
NIGHT_RAIN (14, "Night Rain" ),
NIGHT_SHOWERS (15, "Night Showers" ),
NIGHT_SNOW (16, "Night Snow" ),
NIGHT_THUNDER (17, "Night Thunder" ),
OVERCAST (18, "Overcast" ),
PARTLY_CLOUDY (19, "Partly Cloudy" ),
RAIN (20, "Rain" ),
HARD_RAIN (21, "Hard Rain" ),
SHOWERS (22, "Showers" ),
SLEET (23, "Sleet" ),
SLEET_SHOWERS (24, "Sleet Showers" ),
SNOWING (25, "Snow" ),
SNOW_MELT (26, "Snow Melt" ),
SNOW_SHOWERS (27, "Snow Showers" ),
SUNNY_2 (28, "Sunny" ),
THUNDER_SHOWERS_1 (29, "Thunder Showers" ),
THUNDER_SHOWERS_2 (30, "Thunder Showers" ),
THUNDERSTORMS (31, "Thunderstorms" ),
TORNADO_WARNING (32, "Tornado Warning" ),
WINDY (33, "Windy" ),
STOPPED_RAINING (34, "Stopped Raining" ),
WINDY_RAIN (35, "Windy Rain" );
private int icon;
private String description;
Conditions(int icon, String description)
{
this.icon = icon;
this.description = description;
}
public int getIcon()
{
return icon;
}
public String getDescription()
{
return description;
}
public static Conditions resolveIcon(int icon)
{
Conditions resolved = null;
for (Conditions conditions : Conditions.values())
{
if (conditions.icon == icon)
{
resolved = conditions;
break ;
}
}
return resolved;
}
}
Java Source Code List com.waynedgrant.cirrus.UpdateWidgetService.java com.waynedgrant.cirrus.WidgetConfigActivity.java com.waynedgrant.cirrus.WidgetProvider.java com.waynedgrant.cirrus.clientraw.ClientRawCache.java com.waynedgrant.cirrus.clientraw.ClientRawRequest.java com.waynedgrant.cirrus.clientraw.ClientRawResponse.java com.waynedgrant.cirrus.clientraw.ClientRawUrl.java com.waynedgrant.cirrus.clientraw.ClientRaw.java com.waynedgrant.cirrus.clientraw.RetrieveClientRawTask.java com.waynedgrant.cirrus.measures.Conditions.java com.waynedgrant.cirrus.measures.Pressure.java com.waynedgrant.cirrus.measures.Rainfall.java com.waynedgrant.cirrus.measures.Temperature.java com.waynedgrant.cirrus.measures.Trend.java com.waynedgrant.cirrus.measures.WeatherItem.java com.waynedgrant.cirrus.measures.WindDirection.java com.waynedgrant.cirrus.measures.WindSpeed.java com.waynedgrant.cirrus.preferences.Preferences.java com.waynedgrant.cirrus.presentation.colorizers.TemperatureColorizer.java com.waynedgrant.cirrus.presentation.colorizers.UvIndexColorizer.java com.waynedgrant.cirrus.presentation.colorizers.WeatherItemColorizer.java com.waynedgrant.cirrus.presentation.formatters.ConditionsFormatter.java com.waynedgrant.cirrus.presentation.formatters.DateFormat.java com.waynedgrant.cirrus.presentation.formatters.DateFormatter.java com.waynedgrant.cirrus.presentation.formatters.FormattedWeatherItem.java com.waynedgrant.cirrus.presentation.formatters.HumidityFormatter.java com.waynedgrant.cirrus.presentation.formatters.PressureFormatter.java com.waynedgrant.cirrus.presentation.formatters.RainfallFormatter.java com.waynedgrant.cirrus.presentation.formatters.RainfallRateFormatter.java com.waynedgrant.cirrus.presentation.formatters.SolarPercentageFormatter.java com.waynedgrant.cirrus.presentation.formatters.SolarRadiationFormatter.java com.waynedgrant.cirrus.presentation.formatters.StringFormatter.java com.waynedgrant.cirrus.presentation.formatters.TemperatureFormatter.java com.waynedgrant.cirrus.presentation.formatters.TimeFormat.java com.waynedgrant.cirrus.presentation.formatters.TimeFormatter.java com.waynedgrant.cirrus.presentation.formatters.TrendFormatter.java com.waynedgrant.cirrus.presentation.formatters.UvIndexFormatter.java com.waynedgrant.cirrus.presentation.formatters.WeatherItemFormatter.java com.waynedgrant.cirrus.presentation.formatters.WindDirectionFormatter.java com.waynedgrant.cirrus.presentation.formatters.WindSpeedFormatter.java com.waynedgrant.cirrus.units.CardinalDirection.java com.waynedgrant.cirrus.units.PressureUnit.java com.waynedgrant.cirrus.units.RainfallUnit.java com.waynedgrant.cirrus.units.TemperatureUnit.java com.waynedgrant.cirrus.units.WindDirectionUnit.java com.waynedgrant.cirrus.units.WindSpeedUnit.java com.waynedgrant.cirrus.update.Timeout.java