EVGReview Class Reference

Inherits fromDeclared in
NSObjectEVGItems.h

Overview 

A user-created review of an item.

itemId 

The ID (see [EVGItem evgId]) of the item being reviewed.

1@property (nullable, nonatomic, copy) NSString *itemId

date 

Date and time when the review was submitted.

1@property (nullable, nonatomic, strong) NSDate *date

rating 

Score given to the item in this review, must be normalized to the range 1-100 inclusive.

1@property (nullable, nonatomic, strong) NSNumber *rating

title 

The title of the review.

1@property (nullable, nonatomic, copy) NSString *title

content 

The text content of the review.

1@property (nullable, nonatomic, copy) NSString *content

userDisplayName 

Name to be displayed along with review, may have no relation to actual user ID.

1@property (nullable, nonatomic, copy) NSString *userDisplayName

purchased 

Whether the product was purchased by this user before being reviewed.

1@property (nonatomic) BOOL purchased

reviewWithItemId:date:rating:title:purchased: 

Builds review details for an item. This method only builds a data object. To use it, pass it to one of the tracking methods like [EVGContext review:reviewDetails:].

1+ (nonnull instancetype)reviewWithItemId:(nonnull NSString *)itemId date:(nullable NSDate *)date rating:(nullable NSNumber *)rating title:(nullable NSString *)title purchased:(BOOL)purchased

Parameters

ParameterDescription
itemIdThe required [EVGItem evgId] of the item being reviewed
dateSee date
ratingSee rating
titleSee title
purchasedSee purchased

Return Value

Review details which can be further modified.