public class RatingRequestBody extends FeedbackRequestBody
| Constructor and Description |
|---|
RatingRequestBody()
Default constructor
|
RatingRequestBody(RatingRequestBody template)
Copy/clone constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.
|
String |
getReview()
Return the attached review (if any)
|
StarRating |
getStarRating()
Return the star rating.
|
int |
hashCode()
Return hash code for this object
|
void |
setReview(String review)
Set up the attached review (if any)
|
void |
setStarRating(StarRating starRating)
Set up the star rating.
|
String |
toString()
JSON-style toString.
|
isPublic, setPublicpublic RatingRequestBody()
public RatingRequestBody(RatingRequestBody template)
template - object to copypublic StarRating getStarRating()
public void setStarRating(StarRating starRating)
starRating - enumpublic String getReview()
public void setReview(String review)
review - textpublic String toString()
toString in class FeedbackRequestBodypublic boolean equals(Object objectToCompare)
equals in class FeedbackRequestBodyobjectToCompare - object to comparepublic int hashCode()
hashCode in class FeedbackRequestBodyCopyright © 2018–2019 ODPi. All rights reserved.