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.
– 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