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
public class Place extends NamedFacebookType
- Since:
- 1.6.10
- Author:
- Chris Petersen, Mark Allen
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description Place()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addCategory(Category category)
List<Category>
getCategoryList()
List of other categories for this place.Location
getLocation()
Location containing geographic information such as latitude, longitude, country, and other fields (fields will vary based on geography and availability of information).String
getLocationAsString()
Description for this location.Double
getOverallRating()
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 Detail
-
Place
public Place()
-
-
Method Detail
-
getCategoryList
public List<Category> getCategoryList()
List of other categories for this place.- Returns:
- List of other categories for this place.
- Since:
- 1.6.15
-
addCategory
public boolean addCategory(Category category)
-
removeCategory
public boolean removeCategory(Category category)
-
getLocation
public Location 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
public 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). It is possible for Facebook to return either this value orgetLocationAsString()
.
-
getOverallRating
@GraphAPI(since="2.5") public Double 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
public void setOverallRating(Double overallRating)
Overall Rating of Place, on a 5-star scale. 0 means not enough data to get a combined rating.
-
getLocationAsString
public String 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
public void setLocationAsString(String locationAsString)
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
-
-