public abstract class WeatherCondition
extends java.lang.Object
implements android.os.Parcelable
| Modifier | Constructor and Description |
|---|---|
|
WeatherCondition() |
protected |
WeatherCondition(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
WeatherCode |
getCode()
A Kustom compatible weather code properly converted
|
java.lang.String |
getCondition() |
int |
getHumidity() |
float |
getPressure() |
abstract float |
getTemperature() |
int |
getWindDeg() |
float |
getWindSpeed() |
void |
setCode(WeatherCode code)
Sets Kustom standard weather code
|
void |
setCondition(java.lang.String condition)
Sets condition in readable format
|
void |
setHumidity(int humidity)
Set humidity in %
|
void |
setPressure(float pressure)
Set pressure in millibars
|
void |
setWindDeg(int value)
Set wind direction in degrees
|
void |
setWindSpeed(float value)
Set wind speed in m/s
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public WeatherCondition()
protected WeatherCondition(android.os.Parcel in)
public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic java.lang.String getCondition()
public void setCondition(java.lang.String condition)
condition - the condition possibly in request languagepublic WeatherCode getCode()
public void setCode(WeatherCode code)
code - the code to be setpublic int getWindDeg()
public void setWindDeg(int value)
value - direction in degrees to northpublic float getWindSpeed()
public void setWindSpeed(float value)
value - in meters per secondpublic float getPressure()
public void setPressure(float pressure)
pressure - in millibarspublic int getHumidity()
public void setHumidity(int humidity)
humidity - in percentagepublic abstract float getTemperature()