public class ProductReview extends AbstractResponse<ProductReview>
optimisticData, responseData| Constructor and Description |
|---|
ProductReview() |
ProductReview(com.google.gson.JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getAverageRating()
The average rating for product review.
|
String |
getCreatedAt()
Date indicating when the review was created.
|
String |
getGraphQlTypeName() |
String |
getNickname()
The customer's nickname.
|
ProductInterface |
getProduct()
Contains details about the reviewed product
|
List<ProductReviewRating> |
getRatingsBreakdown()
An array of ratings by rating category, such as quality, price, and value
|
String |
getSummary()
The summary (title) of the review
|
String |
getText()
The review text.
|
ProductReview |
setAverageRating(Double arg) |
ProductReview |
setCreatedAt(String arg) |
ProductReview |
setNickname(String arg) |
ProductReview |
setProduct(ProductInterface arg) |
ProductReview |
setRatingsBreakdown(List<ProductReviewRating> arg) |
ProductReview |
setSummary(String arg) |
ProductReview |
setText(String arg) |
boolean |
unwrapsToObject(String key) |
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAliaspublic ProductReview()
public ProductReview(com.google.gson.JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic String getGraphQlTypeName()
public Double getAverageRating()
public ProductReview setAverageRating(Double arg)
public String getCreatedAt()
public ProductReview setCreatedAt(String arg)
public String getNickname()
public ProductReview setNickname(String arg)
public ProductInterface getProduct()
public ProductReview setProduct(ProductInterface arg)
public List<ProductReviewRating> getRatingsBreakdown()
public ProductReview setRatingsBreakdown(List<ProductReviewRating> arg)
public String getSummary()
public ProductReview setSummary(String arg)
public String getText()
public ProductReview setText(String arg)
public boolean unwrapsToObject(String key)
unwrapsToObject in class AbstractResponse<ProductReview>Copyright © 2022 Adobe. All rights reserved.