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 *)apiResponseParameters
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 *brandsDeclared In
BVShopperProfile.h
interests
Dictionary of user’s interests
@property (nonnull, strong, nonatomic) NSDictionary *interestsDeclared In
BVShopperProfile.h
recommendations
Array of BVRecommendedProduct objects, recommended for the user.
@property (nonnull, strong, nonatomic) NSArray *recommendationsDeclared In
BVShopperProfile.h
product_keys
Product recommendation keys associated with the recommended BVRecommendedProduct(s).
@property (nonnull, strong, nonatomic) NSSet *product_keysDeclared In
BVShopperProfile.h