public final class

RequestInfo

extends Object
implements Parcelable
java.lang.Object
   ↳ lineageos.weather.RequestInfo

Class Overview

This class holds the information of a request submitted to the active weather provider service

Summary

Constants
int TYPE_LOOKUP_CITY_NAME_REQ A request to look up a city name
int TYPE_WEATHER_BY_GEO_LOCATION_REQ A request to update the weather data using a geographical Location
int TYPE_WEATHER_BY_WEATHER_LOCATION_REQ A request to update the weather data using a WeatherLocation
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<RequestInfo> CREATOR
Public Methods
int describeContents()
boolean equals(Object obj)
String getCityName()
Location getLocation()
int getRequestType()
int getTemperatureUnit()
WeatherLocation getWeatherLocation()
int hashCode()
String toString()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int TYPE_LOOKUP_CITY_NAME_REQ

added in API level 5

A request to look up a city name

Constant Value: 3 (0x00000003)

public static final int TYPE_WEATHER_BY_GEO_LOCATION_REQ

added in API level 5

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

added in API level 5

A request to update the weather data using a WeatherLocation

Constant Value: 2 (0x00000002)

Fields

public static final Creator<RequestInfo> CREATOR

added in API level 5

Public Methods

public int describeContents ()

added in API level 5

Returns
int

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public String getCityName ()

added in API level 5

Returns
String the city name if this is a lookup request, null otherwise

public Location getLocation ()

added in API level 5

Returns
Location the Location if this is a request by location, null otherwise

public int getRequestType ()

added in API level 5

Returns
int The request type

public int getTemperatureUnit ()

added in API level 5

Returns
int the temperature unit if this is a weather request, -1 otherwise

public WeatherLocation getWeatherLocation ()

added in API level 5

Returns
WeatherLocation the WeatherLocation if this is a request by weather location, null otherwise

public int hashCode ()

Returns
int

public String toString ()

Returns
String

public void writeToParcel (Parcel dest, int flags)

added in API level 5

Parameters
dest Parcel
flags int