EVGReview Class Reference

Inherits from NSObject
Declared in 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

Declared In

EVGItems.h

  date

Date and time when the review was submitted.

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

Declared In

EVGItems.h

  rating

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

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

Declared In

EVGItems.h

  title

The title of the review.

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

Declared In

EVGItems.h

  content

The text content of the review.

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

Declared In

EVGItems.h

  userDisplayName

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

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

Declared In

EVGItems.h

  purchased

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

@property (nonatomic) BOOL purchased

Declared In

EVGItems.h

+ 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

itemId

The required [EVGItem evgId] of the item being reviewed

date

See date

rating

See rating

title

See title

purchased

See purchased

Return Value

Review details which can be further modified.

Declared In

EVGItems.h