BVShopperProfile Class Reference

Inherits from NSObject
Declared in BVShopperProfile.h

Overview

Data model for a user’s shopper profile including: interests, brands, and product recommendations

– initWithDictionary:

Builds the model based on the JSON API response from the BV recommendations

API

- (nonnull id)initWithDictionary:(nonnull NSDictionary *)apiResponse

Parameters

apiResponse

JSON response from BV recommendations API

Return Value

The initialzed shopper profile model with product recommendations.

Declared In

BVShopperProfile.h

  brands

Brands the user likes. Dictionary where keys are brands and values are strenght, specified by strings: HIGH | MED | LOW

@property (nonnull, strong, nonatomic) NSDictionary *brands

Declared In

BVShopperProfile.h

  interests

Dictionary of user’s interests

@property (nonnull, strong, nonatomic) NSDictionary *interests

Declared In

BVShopperProfile.h

  recommendations

Array of BVRecommendedProduct objects, recommended for the user.

@property (nonnull, strong, nonatomic) NSArray *recommendations

Declared In

BVShopperProfile.h

  product_keys

Product recommendation keys associated with the recommended BVRecommendedProduct(s).

@property (nonnull, strong, nonatomic) NSSet *product_keys

Declared In

BVShopperProfile.h