Package com.restfb.types
Class OpenGraphRating
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.OpenGraphRating
-
- All Implemented Interfaces:
HasCreatedTime
,Serializable
public class OpenGraphRating extends FacebookType implements HasCreatedTime
Represents the Open Graph Rating API type.- Since:
- 1.20.0
- Author:
- Alexander Nenkov
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description OpenGraphRating()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getCreatedTime()
When the reviewer rated this object.Boolean
getHasRating()
Was a rating includedBoolean
getHasReview()
Was there text in the ratingPageRating
getOpenGraphStory()
Open Graph story generated by the rating actionInteger
getRating()
RatingRecommendationType
getRecommendationType()
Recommendation field for change on August 17, 2018User
getReviewer()
Person who rated the objectString
getReviewText()
Review text included in the reviewboolean
isRecommendation()
If OpenGraphRating is a new recommendationvoid
setCreatedTime(Date createdTime)
When the reviewer rated this object.void
setHasRating(Boolean hasRating)
Was a rating includedvoid
setHasReview(Boolean hasReview)
Was there text in the ratingvoid
setOpenGraphStory(PageRating openGraphStory)
Open Graph story generated by the rating actionvoid
setRating(Integer rating)
Ratingvoid
setRecommendationType(RecommendationType recommendationType)
Recommendation field for change on August 17, 2018void
setReviewer(User reviewer)
Person who rated the objectvoid
setReviewText(String reviewText)
Review text included in the review-
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
-
OpenGraphRating
public OpenGraphRating()
-
-
Method Detail
-
isRecommendation
public boolean isRecommendation()
If OpenGraphRating is a new recommendation- Returns:
true
if it is a recommendation,false
if it's a rating
-
getCreatedTime
public Date getCreatedTime()
When the reviewer rated this object.- Specified by:
getCreatedTime
in interfaceHasCreatedTime
- Returns:
- When the reviewer rated this object.
-
setCreatedTime
public void setCreatedTime(Date createdTime)
When the reviewer rated this object.
-
getHasRating
public Boolean getHasRating()
Was a rating included- Returns:
- Was a rating included
-
setHasRating
public void setHasRating(Boolean hasRating)
Was a rating included
-
getHasReview
public Boolean getHasReview()
Was there text in the rating- Returns:
- Was there text in the rating
-
setHasReview
public void setHasReview(Boolean hasReview)
Was there text in the rating
-
getReviewText
public String getReviewText()
Review text included in the review- Returns:
- Review text included in the review
-
setReviewText
public void setReviewText(String reviewText)
Review text included in the review
-
getReviewer
public User getReviewer()
Person who rated the object- Returns:
- Person who rated the object
-
setReviewer
public void setReviewer(User reviewer)
Person who rated the object
-
getRecommendationType
public RecommendationType getRecommendationType()
Recommendation field for change on August 17, 2018for more information check here: https://www.facebook.com/business/recommendations
- Returns:
- the recommendation type
-
setRecommendationType
public void setRecommendationType(RecommendationType recommendationType)
Recommendation field for change on August 17, 2018for more information check here: https://www.facebook.com/business/recommendations
-
getOpenGraphStory
public PageRating getOpenGraphStory()
Open Graph story generated by the rating action- Returns:
- Open Graph story generated by the rating action
-
setOpenGraphStory
public void setOpenGraphStory(PageRating openGraphStory)
Open Graph story generated by the rating action
-
-