mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 12:27:52 +08:00
Moved query path appending to RKPathAppendQueryParams for convenience. Deprecated RKClient flavor.
This commit is contained in:
@@ -162,7 +162,7 @@ static RKObjectManager* sharedManager = nil;
|
||||
}
|
||||
|
||||
- (RKObjectLoader*)loadObjectsAtResourcePath:(NSString *)resourcePath queryParams:(NSDictionary*)queryParams delegate:(NSObject <RKObjectLoaderDelegate>*)delegate {
|
||||
NSString* resourcePathWithQuery = [self.client resourcePath:resourcePath withQueryParams:queryParams];
|
||||
NSString* resourcePathWithQuery = RKPathAppendQueryParams(resourcePath, queryParams);
|
||||
RKObjectLoader* loader = [self objectLoaderWithResourcePath:resourcePathWithQuery delegate:delegate];
|
||||
loader.method = RKRequestMethodGET;
|
||||
|
||||
@@ -182,7 +182,7 @@ static RKObjectManager* sharedManager = nil;
|
||||
}
|
||||
|
||||
- (RKObjectLoader*)loadObjectsAtResourcePath:(NSString *)resourcePath queryParams:(NSDictionary*)queryParams objectClass:(Class<RKObjectMappable>)objectClass delegate:(NSObject <RKObjectLoaderDelegate>*)delegate {
|
||||
NSString* resourcePathWithQuery = [self.client resourcePath:resourcePath withQueryParams:queryParams];
|
||||
NSString* resourcePathWithQuery = RKPathAppendQueryParams(resourcePath, queryParams);
|
||||
RKObjectLoader* loader = [self objectLoaderWithResourcePath:resourcePathWithQuery delegate:delegate];
|
||||
loader.method = RKRequestMethodGET;
|
||||
loader.objectClass = objectClass;
|
||||
|
||||
Reference in New Issue
Block a user