Package com.restfb.types
Class Place
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.NamedFacebookType
com.restfb.types.Place
- All Implemented Interfaces:
Serializable
- Since:
- 1.6.10
- Author:
- Chris Petersen, Mark Allen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addCategory
(Category category) List of other categories for this place.Location containing geographic information such as latitude, longitude, country, and other fields (fields will vary based on geography and availability of information).Description for this location.Overall Rating of Place, on a 5-star scale. 0 means not enough data to get a combined rating.boolean
removeCategory
(Category category) void
setLocation
(Location location) Location containing geographic information such as latitude, longitude, country, and other fields (fields will vary based on geography and availability of information).void
setLocationAsString
(String locationAsString) Description for this location.void
setOverallRating
(Double overallRating) Overall Rating of Place, on a 5-star scale. 0 means not enough data to get a combined rating.Methods inherited from class com.restfb.types.NamedFacebookType
getName, setName
Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
Place
public Place()
-
-
Method Details
-
getCategoryList
List of other categories for this place.- Returns:
- List of other categories for this place.
- Since:
- 1.6.15
-
addCategory
-
removeCategory
-
getLocation
Location containing geographic information such as latitude, longitude, country, and other fields (fields will vary based on geography and availability of information). It is possible for Facebook to return either this value orgetLocationAsString()
.- Returns:
- Location containing geographic information such as latitude, longitude, country, and other fields.
-
setLocation
Location containing geographic information such as latitude, longitude, country, and other fields (fields will vary based on geography and availability of information). It is possible for Facebook to return either this value orgetLocationAsString()
. -
getOverallRating
Overall Rating of Place, on a 5-star scale. 0 means not enough data to get a combined rating.- Returns:
- Overall Rating of Place, on a 5-star scale.
-
setOverallRating
Overall Rating of Place, on a 5-star scale. 0 means not enough data to get a combined rating. -
getLocationAsString
Description for this location.It is possible for Facebook to return either this value or
getLocation()
. IfgetLocation()
returnsnull
, then check this method to see if it has data, e.g."Philadelphia, PA"
.- Returns:
- Description for this location.
- Since:
- 1.6.12
-
setLocationAsString
Description for this location.It is possible for Facebook to return either this value or
getLocation()
. IfgetLocation()
returnsnull
, then check this method to see if it has data, e.g."Philadelphia, PA"
.- Since:
- 1.6.12
-