mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-17 12:20:20 +08:00
Moved mapping format to the resource manager header
This commit is contained in:
@@ -9,12 +9,6 @@
|
||||
|
||||
#import "RKRequest.h"
|
||||
|
||||
// TODO: De-emphasize this and move...
|
||||
typedef enum {
|
||||
RKMappingFormatXML = 0,
|
||||
RKMappingFormatJSON
|
||||
} RKMappingFormat;
|
||||
|
||||
/**
|
||||
* Must be implemented by all classes utilizing the RKModelMapper to map REST
|
||||
* responses to domain model classes
|
||||
|
||||
@@ -10,6 +10,14 @@
|
||||
#import "RKResourceMappable.h"
|
||||
#import "RKObjectPropertyInspector.h"
|
||||
|
||||
/**
|
||||
* Define the resource mapping formats
|
||||
*/
|
||||
typedef enum {
|
||||
RKMappingFormatXML = 0,
|
||||
RKMappingFormatJSON
|
||||
} RKMappingFormat;
|
||||
|
||||
/**
|
||||
* The format parser is responsible for transforming a string
|
||||
* of data into a dictionary. This allows the model mapper to
|
||||
|
||||
Reference in New Issue
Block a user