mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-01-12 22:51:50 +08:00
29 lines
717 B
Objective-C
29 lines
717 B
Objective-C
//
|
|
// TestSerialization.m
|
|
// OTRestFramework
|
|
//
|
|
// Created by Jeremy Ellison on 8/17/09.
|
|
// Copyright 2009 Objective3. All rights reserved.
|
|
//
|
|
|
|
#import "TestSerialization.h"
|
|
|
|
|
|
@implementation TestSerialization
|
|
|
|
@synthesize dateTest = _dateTest, numberTest = _numberTest, stringTest = _stringTest,
|
|
hasOne = _hasOne, hasMany = _hasMany;
|
|
|
|
+ (NSDictionary*)elementToPropertyMappings {
|
|
return [NSDictionary dictionaryWithObjectsAndKeys:@"dateTest", @"date_test",
|
|
@"numberTest", @"number_test",
|
|
@"stringTest", @"string_test", nil];
|
|
}
|
|
|
|
+ (NSDictionary*)elementToRelationshipMappings {
|
|
return [NSDictionary dictionaryWithObjectsAndKeys:@"hasOne", @"has_one",
|
|
@"hasMany", @"has_manys > has_many", nil];
|
|
}
|
|
|
|
@end
|