java.lang.Object |
↳ |
lineageos.weather.WeatherInfo |
Class Overview
This class represents the weather information that a
WeatherProviderService
will use to update the weather content
provider. A weather provider service will be called by the system to process an update
request at any time. If the service successfully processes the request, then the weather provider
service is responsible of calling
complete(ServiceRequestResult)
to notify the
system that the request was completed and that the weather content provider should be updated
with the supplied weather information.
Summary
Nested Classes |
class |
WeatherInfo.Builder |
Builder class for WeatherInfo
|
class |
WeatherInfo.DayForecast |
This class represents the weather forecast for a given day.
|
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_ELIDE_DUPLICATES |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
Public Methods
public
int
describeContents
()
public
boolean
equals
(Object obj)
public
int
getConditionCode
()
Returns |
int |
An implementation specific weather condition code
|
public
double
getHumidity
()
public
double
getTemperature
()
Returns |
double |
current temperature
|
public
int
getTemperatureUnit
()
Returns |
int |
temperature unit
|
public
long
getTimestamp
()
Returns |
long |
time stamp when the request was processed
|
public
double
getTodaysHigh
()
Returns |
double |
today's high temperature
|
public
double
getTodaysLow
()
Returns |
double |
today's low temperature
|
public
double
getWindDirection
()
Returns |
double |
wind direction (degrees)
|
public
double
getWindSpeed
()
Returns |
double |
wind speed
|
public
int
getWindSpeedUnit
()
Returns |
int |
wind speed unit
|
public
String
toString
()
public
void
writeToParcel
(Parcel dest, int flags)
Parameters |
dest |
Parcel |
flags |
int |