mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 04:20:21 +08:00
Implementation of Object Mapping 2.0 design:
* Removed RestKit from inheritance hierarchy * Mappings are implemented as concrete classes * Mapper is much more flexible & powerful * Much more robust error handling * Serialization is reimplemented as an object mapping operation * Added ability to serialize to JSON natively * Reworked Core Data integration * Simplified the codebase substantially
This commit is contained in:
@@ -16,20 +16,6 @@
|
||||
|
||||
#pragma mark RKObjectMappable methods
|
||||
|
||||
/**
|
||||
* The property mapping dictionary. This method declares how elements in the JSON
|
||||
* are mapped to properties on the object.
|
||||
*/
|
||||
+ (NSDictionary*)elementToPropertyMappings {
|
||||
return [NSDictionary dictionaryWithKeysAndObjects:
|
||||
@"id", @"topicID",
|
||||
@"name", @"name",
|
||||
@"user_id", @"userID",
|
||||
@"created_at", @"createdAt",
|
||||
@"updated_at", @"updatedAt",
|
||||
nil];
|
||||
}
|
||||
|
||||
/**
|
||||
* Informs RestKit which properties contain the primary key values that
|
||||
* can be used to hydrate relationships to other objects. This hint enables
|
||||
|
||||
Reference in New Issue
Block a user