BVRecommendedProduct Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | BVDisplayableProductContent |
| Declared in | BVRecommendedProduct.h |
– initWithDictionary:withRecommendationStats:
A single product recommendation model object
- (nonnull id)initWithDictionary:(nonnull NSDictionary *)dict withRecommendationStats:(nonnull NSDictionary *)recommendationStatsParameters
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 *productIdDeclared In
BVRecommendedProduct.h
productName
The product title
@property (nonnull, strong, nonatomic) NSString *productNameDeclared In
BVRecommendedProduct.h
productPageURL
The fully qualified URL for this product.
@property (nonnull, strong, nonatomic) NSString *productPageURLDeclared In
BVRecommendedProduct.h
imageURL
The product image thumbnail. Sizes may vary depending on the brand or client
@property (nonnull, strong, nonatomic) NSString *imageURLDeclared In
BVRecommendedProduct.h
averageRating
The average (float) rating for this product
@property (nonnull, strong, nonatomic) NSNumber *averageRatingDeclared In
BVRecommendedProduct.h
numReviews
The total number of reviews on the product (integer)
@property (nonnull, strong, nonatomic) NSNumber *numReviewsDeclared In
BVRecommendedProduct.h
price
Price, in USD
@property (nonnull, strong, nonatomic) NSString *priceDeclared In
BVRecommendedProduct.h
review
Highlighted review for this product.
@property (nonnull, strong, nonatomic) BVProductReview *reviewDeclared In
BVRecommendedProduct.h
sponsored
Whether this recommendation is a sponsored piece of content or not
@property bool sponsoredDeclared In
BVRecommendedProduct.h
– recordTap
Record a tap event – the user tapped a product
- (void)recordTapDeclared In
BVRecommendedProduct.h