BVStore Class Reference

Inherits from BVGenericConversationsResult : NSObject
Declared in BVStore.h

Overview

A BVStore object is found within the response objects: BVBulkStoresResponse and BVStoreReviewsResponse. Some commonly used data in a store: Product page URL is included in the productPageUrl property. This would be the icon to display the store in your app. Product image URL is included in the imageUrl property. Store review statistics are included in the reviewStatistics property, if requested in the original request object. The storeLocation provides additional attributes about the store, such as geo-location and phone number.

  brand

@property (nullable) BVBrand *brand

  storeLocation

@property (nullable) BVStoreLocation *storeLocation

  productDescription

@property (nullable) NSString *productDescription

  attributes

@property (nullable) NSDictionary *attributes

  brandExternalId

@property (nullable) NSString *brandExternalId

  productPageUrl

@property (nullable) NSString *productPageUrl

  imageUrl

@property (nullable) NSString *imageUrl

  name

@property (nullable) NSString *name

  categoryId

@property (nullable) NSString *categoryId

  identifier

@property (nullable) NSString *identifier

  reviewStatistics

@property (nullable) BVReviewStatistics *reviewStatistics

  deviceLocation

@property (nullable) CLLocation *deviceLocation

  apiResponse

@property (nonnull) NSDictionary *apiResponse

– initWithApiResponse:

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

– getCLLocation

Helper to construct a CLLoation object for a store, if the latitue and longitude were provided in the API response model.

- (nullable CLLocation *)getCLLocation

Declared In

BVStore.h

– distanceInMetersFromCurrentLocation

Given a CLLocation object with latitude and longitude, get the distance in meters from the current store object. Returns -1 if the store does not have a location.

- (CLLocationDistance)distanceInMetersFromCurrentLocation

Declared In

BVStore.h

– hasGeoLoation

Returns true of a valid latitude and longitude is present for this store in the BVStoreLocation object.

- (BOOL)hasGeoLoation

Declared In

BVStore.h