EVGReview Class Reference
Inherits from Declared in NSObject
EVGItems.h
Overview
A user-created review of an item.
itemId
The ID (see [EVGItem evgId]
) of the item being reviewed.
@property (nullable, nonatomic, copy) NSString *itemId
date
Date and time when the review was submitted.
@property (nullable, nonatomic, strong) NSDate *date
rating
Score given to the item in this review, must be normalized to the range 1-100 inclusive.
@property (nullable, nonatomic, strong) NSNumber *rating
title
The title of the review.
@property (nullable, nonatomic, copy) NSString *title
content
The text content of the review.
@property (nullable, nonatomic, copy) NSString *content
userDisplayName
Name to be displayed along with review, may have no relation to actual user ID.
@property (nullable, nonatomic, copy) NSString *userDisplayName
purchased
Whether the product was purchased by this user before being reviewed.
@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:]
.
+ (nonnull instancetype)reviewWithItemId:(nonnull NSString *)itemId date:(nullable NSDate *)date rating:(nullable NSNumber *)rating title:(nullable NSString *)title purchased:(BOOL)purchased
Parameters
Return Value
Review details which can be further modified.