mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-01 22:42:51 +08:00
31 lines
527 B
Objective-C
31 lines
527 B
Objective-C
//
|
|
// RKObject.m
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 7/20/10.
|
|
// Copyright 2010 Two Toasters. All rights reserved.
|
|
//
|
|
|
|
#import "RKObject.h"
|
|
|
|
@implementation RKObject
|
|
|
|
+ (NSDictionary*)elementToPropertyMappings {
|
|
[self doesNotRecognizeSelector:_cmd];
|
|
return nil;
|
|
}
|
|
|
|
+ (NSDictionary*)elementToRelationshipMappings {
|
|
return [NSDictionary dictionary];
|
|
}
|
|
|
|
+ (id)object {
|
|
return [[self new] autorelease];
|
|
}
|
|
|
|
- (NSDictionary*)propertiesForSerialization {
|
|
return RKObjectMappableGetPropertiesByElement(self);
|
|
}
|
|
|
|
@end
|