mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-28 16:05:44 +08:00
Introduce RKPropertyMapping abstract superclass for RKAttributeMapping and RKRelationshipMapping.
Add primitives for working with attribute, relationship, and property mapping objects.
This commit is contained in:
@@ -18,19 +18,14 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "RKAttributeMapping.h"
|
||||
#import "RKMapping.h"
|
||||
#import "RKPropertyMapping.h"
|
||||
|
||||
@interface RKRelationshipMapping : RKAttributeMapping
|
||||
@class RKMapping;
|
||||
|
||||
@property (nonatomic, retain) RKMapping *mapping;
|
||||
@property (nonatomic, assign) BOOL reversible;
|
||||
@interface RKRelationshipMapping : RKPropertyMapping
|
||||
|
||||
+ (RKRelationshipMapping *)mappingFromKeyPath:(NSString *)sourceKeyPath toKeyPath:(NSString *)destinationKeyPath withMapping:(RKMapping *)objectOrDynamicMapping;
|
||||
@property (nonatomic, strong, readonly) RKMapping *mapping;
|
||||
|
||||
+ (RKRelationshipMapping *)mappingFromKeyPath:(NSString *)sourceKeyPath toKeyPath:(NSString *)destinationKeyPath withMapping:(RKMapping *)objectOrDynamicMapping reversible:(BOOL)reversible;
|
||||
|
||||
- (BOOL)isEqualToMapping:(RKRelationshipMapping *)mapping;
|
||||
+ (RKRelationshipMapping *)relationshipMappingFromKeyPath:(NSString *)sourceKeyPath toKeyPath:(NSString *)destinationKeyPath withMapping:(RKMapping *)mapping;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user