Package com.restfb.types
Class SearchPlace
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.NamedFacebookType
-
- com.restfb.types.SearchPlace
-
- All Implemented Interfaces:
HasCover
,HasProfilePicture
,Serializable
public class SearchPlace extends NamedFacebookType implements HasProfilePicture, HasCover
Represents the SearchPlace- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SearchPlace.PagesPlatformComponentFlowServiceConfig
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description SearchPlace()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addCategory(Category category)
protected void
fillProfilePicture(JsonMapper jsonMapper)
String
getAbout()
Information about the Place provided by the Page administrator.AppLinks
getAppLinks()
AppLinks to the Place on various devices.List<Category>
getCategoryList()
The Place's categories.Long
getCheckins()
The number of checkins at this Place.CoverPhoto
getCover()
Information about the cover photo.String
getDescription()
The description of the Place provided by the Page administrator.Page.Engagement
getEngagement()
The social sentence and the like count information for this Place.String
getHours()
Boolean
getIsAlwaysOpen()
Indicates whether this Place is always open.Boolean
getIsPermanentlyClosed()
Indicates whether this Place is permanently closed.Boolean
getIsVerified()
Pages with a large number of followers can be manually verified by Facebook as having an authentic identity.String
getLink()
The URL of the Facebook Page.Location
getLocation()
Location information about the Place.Double
getOverallStarRating()
The overall page rating, based on rating survey from users, on a scale of 1-5.Page
getPage()
The Page node corresponding to the Place.Page.PageParking
getParking()
Parking information about the Place.Page.PagePaymentOptions
getPaymentOptions()
Payment options accepted by the Place.String
getPhone()
The Place's telephone number.List<Photo>
getPhotos()
Photos for the Place.ProfilePictureSource
getPicture()
The pages's profile picture, if provided.String
getPriceRange()
Price range of the business.Long
getRatingCount()
Number of ratings for the PlacePage.PageRestaurantServices
getRestaurantServices()
The services that the restaurant provides.Page.PageRestaurantSpecialties
getRestaurantSpecialties()
The restaurant's specialties.String
getSingleLineAddress()
The Place's complete postal address, on a single line.String
getWebsite()
The URL of the Place's website.List<SearchPlace.PagesPlatformComponentFlowServiceConfig>
getWorkflows()
The native component workflows for this Place.boolean
removeCategory(Category category)
void
setAbout(String about)
Information about the Place provided by the Page administrator.void
setAppLinks(AppLinks appLinks)
AppLinks to the Place on various devices.void
setCheckins(Long checkins)
The number of checkins at this Place.void
setCover(CoverPhoto cover)
Information about the cover photo.void
setDescription(String description)
The description of the Place provided by the Page administrator.void
setEngagement(Page.Engagement engagement)
The social sentence and the like count information for this Place.void
setHours(String hours)
void
setIsAlwaysOpen(Boolean isAlwaysOpen)
Indicates whether this Place is always open.void
setIsPermanentlyClosed(Boolean isPermanentlyClosed)
Indicates whether this Place is permanently closed.void
setIsVerified(Boolean isVerified)
Pages with a large number of followers can be manually verified by Facebook as having an authentic identity.void
setLink(String link)
The URL of the Facebook Page.void
setLocation(Location location)
Location information about the Place.void
setOverallStarRating(Double overallStarRating)
The overall page rating, based on rating survey from users, on a scale of 1-5.void
setPage(Page page)
The Page node corresponding to the Place.void
setParking(Page.PageParking parking)
Parking information about the Place.void
setPaymentOptions(Page.PagePaymentOptions paymentOptions)
Payment options accepted by the Place.void
setPhone(String phone)
The Place's telephone number.void
setPhotos(List<Photo> photos)
Photos for the Place.void
setPicture(ProfilePictureSource picture)
The pages's profile picture, if provided.void
setPriceRange(String priceRange)
Price range of the business.void
setRatingCount(Long ratingCount)
Number of ratings for the Placevoid
setRestaurantServices(Page.PageRestaurantServices restaurantServices)
The services that the restaurant provides.void
setRestaurantSpecialties(Page.PageRestaurantSpecialties restaurantSpecialties)
The restaurant's specialties.void
setSingleLineAddress(String singleLineAddress)
The Place's complete postal address, on a single line.void
setWebsite(String website)
The URL of the Place's website.void
setWorkflows(List<SearchPlace.PagesPlatformComponentFlowServiceConfig> workflows)
The native component workflows for this Place.-
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.restfb.types.features.HasProfilePicture
convertPicture
-
-
-
-
Constructor Detail
-
SearchPlace
public SearchPlace()
-
-
Method Detail
-
fillProfilePicture
protected void fillProfilePicture(JsonMapper jsonMapper)
-
getCategoryList
public List<Category> getCategoryList()
The Place's categories.- Returns:
- The Place's categories.
-
addCategory
public boolean addCategory(Category category)
-
removeCategory
public boolean removeCategory(Category category)
-
getAbout
public String getAbout()
Information about the Place provided by the Page administrator.- Returns:
- Information about the Place provided by the Page administrator.
-
setAbout
public void setAbout(String about)
Information about the Place provided by the Page administrator.
-
getAppLinks
public AppLinks getAppLinks()
AppLinks to the Place on various devices.- Returns:
- AppLinks to the Place on various devices.
-
setAppLinks
public void setAppLinks(AppLinks appLinks)
AppLinks to the Place on various devices.
-
getCheckins
public Long getCheckins()
The number of checkins at this Place.- Returns:
- The number of checkins at this Place.
-
setCheckins
public void setCheckins(Long checkins)
The number of checkins at this Place.
-
getCover
public CoverPhoto getCover()
Information about the cover photo.
-
setCover
public void setCover(CoverPhoto cover)
Information about the cover photo.
-
getDescription
public String getDescription()
The description of the Place provided by the Page administrator.- Returns:
- The description of the Place provided by the Page administrator.
-
setDescription
public void setDescription(String description)
The description of the Place provided by the Page administrator.
-
getEngagement
public Page.Engagement getEngagement()
The social sentence and the like count information for this Place. This is the same information used for the like button.- Returns:
- The social sentence and the like count information for this Place.
-
setEngagement
public void setEngagement(Page.Engagement engagement)
The social sentence and the like count information for this Place. This is the same information used for the like button.
-
getIsAlwaysOpen
public Boolean getIsAlwaysOpen()
Indicates whether this Place is always open.- Returns:
- Indicates whether this Place is always open.
-
setIsAlwaysOpen
public void setIsAlwaysOpen(Boolean isAlwaysOpen)
Indicates whether this Place is always open.
-
getIsPermanentlyClosed
public Boolean getIsPermanentlyClosed()
Indicates whether this Place is permanently closed.- Returns:
- Indicates whether this Place is permanently closed.
-
setIsPermanentlyClosed
public void setIsPermanentlyClosed(Boolean isPermanentlyClosed)
Indicates whether this Place is permanently closed.
-
getIsVerified
public Boolean getIsVerified()
Pages with a large number of followers can be manually verified by Facebook as having an authentic identity. This field indicates whether the Page has been verified by this process.
-
setIsVerified
public void setIsVerified(Boolean isVerified)
Pages with a large number of followers can be manually verified by Facebook as having an authentic identity. This field indicates whether the Page has been verified by this process.
-
getLink
public String getLink()
The URL of the Facebook Page.- Returns:
- The URL of the Facebook Page.
-
getLocation
public Location getLocation()
Location information about the Place. E.g., latitude and longitude, and address.- Returns:
- Location information about the Place. E.g., latitude and longitude, and address.
-
setLocation
public void setLocation(Location location)
Location information about the Place. E.g., latitude and longitude, and address.
-
getOverallStarRating
public Double getOverallStarRating()
The overall page rating, based on rating survey from users, on a scale of 1-5. This value is normalized, and is not guaranteed to be a strict average of user ratings.- Returns:
- The overall page rating, based on rating survey from users, on a scale of 1-5.
-
setOverallStarRating
public void setOverallStarRating(Double overallStarRating)
The overall page rating, based on rating survey from users, on a scale of 1-5. This value is normalized, and is not guaranteed to be a strict average of user ratings.
-
getPage
public Page getPage()
The Page node corresponding to the Place.- Returns:
- The Page node corresponding to the Place.
-
getParking
public Page.PageParking getParking()
Parking information about the Place.- Returns:
- Parking information about the Place.
-
setParking
public void setParking(Page.PageParking parking)
Parking information about the Place.
-
getPaymentOptions
public Page.PagePaymentOptions getPaymentOptions()
Payment options accepted by the Place. Applicable to restaurants and nightlife.- Returns:
- Payment options accepted by the Place.
-
setPaymentOptions
public void setPaymentOptions(Page.PagePaymentOptions paymentOptions)
Payment options accepted by the Place. Applicable to restaurants and nightlife.
-
getPhone
public String getPhone()
The Place's telephone number.- Returns:
- The Place's telephone number.
-
getPicture
public ProfilePictureSource getPicture()
The pages's profile picture, if provided. To force Facebook to fill thepicture
field you have to fetch the page with thefields=picture
parameter, otherwise the picture isnull
.- Specified by:
getPicture
in interfaceHasProfilePicture
- Returns:
- the page's profile picture as ProfilePictureSource object
-
setPicture
public void setPicture(ProfilePictureSource picture)
The pages's profile picture, if provided. To force Facebook to fill thepicture
field you have to fetch the page with thefields=picture
parameter, otherwise the picture isnull
.
-
getPriceRange
public String getPriceRange()
Price range of the business. Applicable to Restaurants or Nightlife. Can be one of $ (0-10), $$ (10-30), $$$ (30-50), $$$$ (50+), or Unspecified- Returns:
- Price range of the business.
-
setPriceRange
public void setPriceRange(String priceRange)
Price range of the business. Applicable to Restaurants or Nightlife. Can be one of $ (0-10), $$ (10-30), $$$ (30-50), $$$$ (50+), or Unspecified
-
getRatingCount
public Long getRatingCount()
Number of ratings for the Place- Returns:
- Number of ratings for the Place
-
setRatingCount
public void setRatingCount(Long ratingCount)
Number of ratings for the Place
-
getRestaurantServices
public Page.PageRestaurantServices getRestaurantServices()
The services that the restaurant provides.- Returns:
- The services that the restaurant provides.
-
setRestaurantServices
public void setRestaurantServices(Page.PageRestaurantServices restaurantServices)
The services that the restaurant provides.
-
getRestaurantSpecialties
public Page.PageRestaurantSpecialties getRestaurantSpecialties()
The restaurant's specialties.- Returns:
- The restaurant's specialties.
-
setRestaurantSpecialties
public void setRestaurantSpecialties(Page.PageRestaurantSpecialties restaurantSpecialties)
The restaurant's specialties.
-
getSingleLineAddress
public String getSingleLineAddress()
The Place's complete postal address, on a single line.- Returns:
- The Place's complete postal address, on a single line.
-
setSingleLineAddress
public void setSingleLineAddress(String singleLineAddress)
The Place's complete postal address, on a single line.
-
getWebsite
public String getWebsite()
The URL of the Place's website.- Returns:
- The URL of the Place's website.
-
setWebsite
public void setWebsite(String website)
The URL of the Place's website.
-
getPhotos
public List<Photo> getPhotos()
Photos for the Place. By default, this edge returns the profile photos for the Place. You can also use an optional type parameter with the value uploaded to get the photos uploaded by the Place.
-
setPhotos
public void setPhotos(List<Photo> photos)
Photos for the Place. By default, this edge returns the profile photos for the Place. You can also use an optional type parameter with the value uploaded to get the photos uploaded by the Place.
-
getWorkflows
public List<SearchPlace.PagesPlatformComponentFlowServiceConfig> getWorkflows()
The native component workflows for this Place. Workflows allow people to perform actions like requesting appointments, buying tickets, and ordering from restaurants on Facebook
-
setWorkflows
public void setWorkflows(List<SearchPlace.PagesPlatformComponentFlowServiceConfig> workflows)
The native component workflows for this Place. Workflows allow people to perform actions like requesting appointments, buying tickets, and ordering from restaurants on Facebook
-
-