Class OpenGraphRating

All Implemented Interfaces:
HasCreatedTime, Serializable

public class OpenGraphRating extends FacebookType implements HasCreatedTime
Since:
1.20.0
Author:
Alexander Nenkov
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • 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 interface HasCreatedTime
      Returns:
      When the reviewer rated this object.
    • setCreatedTime

      public void setCreatedTime(Date createdTime)
      When the reviewer rated this object.
    • getHasRating

      Was a rating included
      Returns:
      Was a rating included
    • setHasRating

      public void setHasRating(Boolean hasRating)
      Was a rating included
    • 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
    • getRating

      public Integer getRating()
      Rating
      Returns:
      Rating
    • setRating

      public void setRating(Integer rating)
      Rating
    • 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

      Recommendation field for change on August 17, 2018 for 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, 2018 for 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

      public void setOpenGraphStory(PageRating openGraphStory)
      Open Graph story generated by the rating action