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
-
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 reviewboolean
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
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 reviewMethods 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
-
OpenGraphRating
public OpenGraphRating()
-
-
Method Details
-
isRecommendation
If OpenGraphRating is a new recommendation- Returns:
true
if it is a recommendation,false
if it's a rating
-
getCreatedTime
When the reviewer rated this object.- Specified by:
getCreatedTime
in 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
-