java.lang.Object |
↳ |
lineageos.weather.RequestInfo |
Class Overview
This class holds the information of a request submitted to the active weather provider service
Summary
[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)
|
|
Constants
public
static
final
int
TYPE_LOOKUP_CITY_NAME_REQ
A request to look up a city name
Constant Value:
3
(0x00000003)
public
static
final
int
TYPE_WEATHER_BY_GEO_LOCATION_REQ
A request to update the weather data using a geographical Location
Constant Value:
1
(0x00000001)
public
static
final
int
TYPE_WEATHER_BY_WEATHER_LOCATION_REQ
A request to update the weather data using a WeatherLocation
Constant Value:
2
(0x00000002)
Fields
Public Methods
public
int
describeContents
()
public
boolean
equals
(Object obj)
public
String
getCityName
()
Returns |
String |
the city name if this is a lookup request, null otherwise
|
public
Location
getLocation
()
Returns |
Location |
the Location if this is a request by location, null
otherwise
|
public
int
getRequestType
()
Returns |
int |
The request type
|
public
int
getTemperatureUnit
()
Returns |
int |
the temperature unit if this is a weather request, -1 otherwise
|
public
String
toString
()
public
void
writeToParcel
(Parcel dest, int flags)
Parameters |
dest |
Parcel |
flags |
int |