BVRecommendedProduct Class Reference

Inherits from NSObject
Conforms to BVDisplayableProductContent
Declared in BVRecommendedProduct.h

Overview

Model contents for a single product recommendation display item

– initWithDictionary:withRecommendationStats:

A single product recommendation model object
- (nonnull id)initWithDictionary:(nonnull NSDictionary *)dict withRecommendationStats:(nonnull NSDictionary *)recommendationStats

Parameters

dict

The API response object for a product recommendation

recommendationStats

The API response object for recommendation statistics

Return Value

A full initialized BVRecommendedProduct model object

Declared In

BVRecommendedProduct.h

  productId

The unique idenfitier of the product

@property (nonnull, strong, nonatomic) NSString *productId

Declared In

BVRecommendedProduct.h

  productName

The product title

@property (nonnull, strong, nonatomic) NSString *productName

Declared In

BVRecommendedProduct.h

  productPageURL

The fully qualified URL for this product.

@property (nonnull, strong, nonatomic) NSString *productPageURL

Declared In

BVRecommendedProduct.h

  imageURL

The product image thumbnail. Sizes may vary depending on the brand or client

@property (nonnull, strong, nonatomic) NSString *imageURL

Declared In

BVRecommendedProduct.h

  averageRating

The average (float) rating for this product

@property (nonnull, strong, nonatomic) NSNumber *averageRating

Declared In

BVRecommendedProduct.h

  numReviews

The total number of reviews on the product (integer)

@property (nonnull, strong, nonatomic) NSNumber *numReviews

Declared In

BVRecommendedProduct.h

  price

Price, in USD

@property (nonnull, strong, nonatomic) NSString *price

Declared In

BVRecommendedProduct.h

  review

Highlighted review for this product.

@property (nonnull, strong, nonatomic) BVProductReview *review

Declared In

BVRecommendedProduct.h

  sponsored

Whether this recommendation is a sponsored piece of content or not

@property bool sponsored

Declared In

BVRecommendedProduct.h

– recordTap

Record a tap event – the user tapped a product

- (void)recordTap

Declared In

BVRecommendedProduct.h