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
Represents the Open Graph
Rating API type.
- Since:
- 1.20.0
- Author:
- Alexander Nenkov
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhen the reviewer rated this object.Was a rating includedWas there text in the ratingOpen Graph story generated by the rating actionRatingRecommendation field for change on August 17, 2018Person who rated the objectReview text included in the reviewbooleanIf OpenGraphRating is a new recommendationvoidsetCreatedTime(Date createdTime) When the reviewer rated this object.voidsetHasRating(Boolean hasRating) Was a rating includedvoidsetHasReview(Boolean hasReview) Was there text in the ratingvoidsetOpenGraphStory(PageRating openGraphStory) Open Graph story generated by the rating actionvoidRatingvoidsetRecommendationType(RecommendationType recommendationType) Recommendation field for change on August 17, 2018voidsetReviewer(User reviewer) Person who rated the objectvoidsetReviewText(String reviewText) Review text included in the reviewMethods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setTypeMethods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
OpenGraphRating
public OpenGraphRating()
-
-
Method Details
-
isRecommendation
If OpenGraphRating is a new recommendation- Returns:
trueif it is a recommendation,falseif it's a rating
-
getCreatedTime
When the reviewer rated this object.- Specified by:
getCreatedTimein interfaceHasCreatedTime- Returns:
- When the reviewer rated this object.
-
setCreatedTime
When the reviewer rated this object. -
getHasRating
Was a rating included- Returns:
- Was a rating included
-
setHasRating
Was a rating included -
getHasReview
Was there text in the rating- Returns:
- Was there text in the rating
-
setHasReview
Was there text in the rating -
getRating
Rating- Returns:
- Rating
-
setRating
Rating -
getReviewText
Review text included in the review- Returns:
- Review text included in the review
-
setReviewText
Review text included in the review -
getReviewer
Person who rated the object- Returns:
- Person who rated the object
-
setReviewer
Person who rated the object -
getRecommendationType
Recommendation field for change on August 17, 2018for more information check here: https://www.facebook.com/business/recommendations
- Returns:
- the recommendation type
-
setRecommendationType
Recommendation field for change on August 17, 2018for more information check here: https://www.facebook.com/business/recommendations
-
getOpenGraphStory
Open Graph story generated by the rating action- Returns:
- Open Graph story generated by the rating action
-
setOpenGraphStory
Open Graph story generated by the rating action
-