MMMerchantService Class Reference
| Inherits from | NSObject |
| Declared in | MMMerchantService.h MMMerchantService.m |
Overview
Provides an additional layer over top
of
MMDBFetcher. This class functionsas the the ‘Service Layer’.
Instance Methods
getCompressedMerchantsForLocation:withCuisineType:
- Retrieves a list of merchants that are within a certain threshold of
- (RACSignal *)getCompressedMerchantsForLocation:(CLLocation *)location withCuisineType:(NSString *)cuisineDiscussion
the given location. Also, the list of merchants must server the type
of cusine that is specifed. Again, the information returned
is only a subset of the available information for a merchants.
*
@param location The location.
@param cuisine The type of cusine.
*
- @return An
NSMutableArrayofMMerchantobjects.
Declared In
MMMerchantService.hgetCompressedMerchantsForLocation:withName:
- Retrieves a list of merchants that are within a certain threshold of
- (RACSignal *)getCompressedMerchantsForLocation:(CLLocation *)location withName:(NSString *)merchantNameDiscussion
the given location. Also, the list of merchants must be either a partial
or full match to the given merchant name. Again, the information returned
is only a subset of the available information for a merchants.
*
@param location The location.
@param merchantName The merchant name to search for.
*
- @return An
NSMutableArrayofMMerchantobjects.
Declared In
MMMerchantService.hgetDefaultCompressedMerchantsForLocation:
- Retrieves a list of merchants that are within a certain
- (RACSignal *)getDefaultCompressedMerchantsForLocation:(CLLocation *)locationDiscussion
threshold of the specified location. The merchant objects
only contain a subset of the available information for
a merchant object.
*
- @param location The location object.
*
- @return A
NSMutableArrayofMMMerchantobjects.
Declared In
MMMerchantService.hgetMerchantWithMerchantID:
- Retrieves the merchant that corresponds
- (RACSignal *)getMerchantWithMerchantID:(NSNumber *)merchantIdDiscussion
- with the given merchant ID.
*
- @param merchantId The ID of the merchant to retrive.
*
- @return An
MMMerchantobject.
Declared In
MMMerchantService.h