com.facebook.model
Interface GraphLocation

All Superinterfaces:
GraphObject

public interface GraphLocation
extends GraphObject

Provides a strongly-typed representation of a Location as defined by the Graph API. Note that this interface is intended to be used with GraphObject.Factory and not implemented directly.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.facebook.model.GraphObject
GraphObject.Factory
 
Method Summary
 String getCity()
          Gets the city component of the location.
 String getCountry()
          Returns the country component of the location.
 double getLatitude()
          Returns the latitude component of the location.
 double getLongitude()
          Returns the longitude component of the location.
 String getState()
          Returns the state component of the location.
 String getStreet()
          Returns the street component of the location.
 String getZip()
          Returns the postal code component of the location.
 void setCity(String city)
          Sets the city component of the location.
 void setCountry(String country)
          Sets the country component of the location
 void setLatitude(double latitude)
          Sets the latitude component of the location.
 void setLongitude(double longitude)
          Sets the longitude component of the location.
 void setState(String state)
          Sets the state component of the location.
 void setStreet(String street)
          Sets the street component of the location.
 void setZip(String zip)
          Sets the postal code component of the location.
 
Methods inherited from interface com.facebook.model.GraphObject
asMap, cast, getInnerJSONObject, getProperty, removeProperty, setProperty
 

Method Detail

getStreet

String getStreet()
Returns the street component of the location.

Returns:
the street component of the location, or null

setStreet

void setStreet(String street)
Sets the street component of the location.

Parameters:
street - the street component of the location, or null

getCity

String getCity()
Gets the city component of the location.

Returns:
the city component of the location

setCity

void setCity(String city)
Sets the city component of the location.

Parameters:
city - the city component of the location

getState

String getState()
Returns the state component of the location.

Returns:
the state component of the location

setState

void setState(String state)
Sets the state component of the location.

Parameters:
state - the state component of the location

getCountry

String getCountry()
Returns the country component of the location.

Returns:
the country component of the location

setCountry

void setCountry(String country)
Sets the country component of the location

Parameters:
country - the country component of the location

getZip

String getZip()
Returns the postal code component of the location.

Returns:
the postal code component of the location

setZip

void setZip(String zip)
Sets the postal code component of the location.

Parameters:
zip - the postal code component of the location

getLatitude

double getLatitude()
Returns the latitude component of the location.

Returns:
the latitude component of the location

setLatitude

void setLatitude(double latitude)
Sets the latitude component of the location.

Parameters:
latitude - the latitude component of the location

getLongitude

double getLongitude()
Returns the longitude component of the location.

Returns:
the longitude component of the location

setLongitude

void setLongitude(double longitude)
Sets the longitude component of the location.

Parameters:
longitude - the longitude component of the location