mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-22 19:09:19 +08:00
Cleanup project structure to match typical TT projects
This commit is contained in:
@@ -23,13 +23,13 @@
|
||||
return [[self new] autorelease];
|
||||
}
|
||||
|
||||
- (id<RKRequestSerializable>)paramsForSerialization {
|
||||
- (NSObject<RKRequestSerializable>*)paramsForSerialization {
|
||||
NSMutableDictionary* params = [NSMutableDictionary dictionary];
|
||||
for (NSString* elementName in [[self class] elementToPropertyMappings]) {
|
||||
NSString* propertyName = [[[self class] elementToPropertyMappings] objectForKey:elementName];
|
||||
[params setValue:[self valueForKey:propertyName] forKey:elementName];
|
||||
}
|
||||
|
||||
|
||||
return [NSDictionary dictionaryWithDictionary:params];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user