Class Review
A user-created review of an item.
Field | Description | Modifier and Type |
---|---|---|
content | The text content of the review. | java.lang.String |
date | Date and time when the review was submitted. | java.util.Date |
itemId | The ID of the item being reviewed. | java.lang.String |
purchased | Whether the product was purchased by this user before being reviewed. | java.lang.Boolean |
rating | Score given to the item in this review, must be normalized to the range 1-100 inclusive. | java.lang.Integer |
title | The title of the review. | java.lang.String |
userDisplayName | Name to be displayed along with review, may have no relation to actual user ID. | java.lang.String |
itemId
See also
date
Date and time when the review was submitted.
rating
Score given to the item in this review, must be normalized to the range 1-100 inclusive.
title
The title of the review.
content
The text content of the review.
userDisplayName
Name to be displayed along with review, may have no relation to actual user ID.
purchased
Whether the product was purchased by this user before being reviewed.
Review
Builds item review details, which can then be further modified. This method only builds a data object. To use it, pass it to one of the tracking methods like Context.review(Item, Review)
.
Parameters
Parameter | Description | Required? |
---|---|---|
itemId | The Item.id of the item being reviewed | Yes |
date | See date | No |
rating | See rating . Should be a value from 1 to 100. | No |
title | See title | No |
purchased | See purchased | No |
Method | Modifier and Type |
---|---|
fromJSONObject(org.json.JSONObject json) | static Review |
toJSONObject() | org.json.JSONObject |
Methods inherited from class java.lang.Object
:
equals
getClass
hashCode
notify
notifyAll
toString
wait
wait
wait