mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 20:31:13 +08:00
Use copy for value properties on response descriptor
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
@class RKMapping;
|
||||
|
||||
/**
|
||||
An RKResponseDescriptor object describes an object mapping configuration
|
||||
@@ -26,9 +27,9 @@
|
||||
@interface RKResponseDescriptor : NSObject
|
||||
|
||||
@property (nonatomic, strong, readonly) RKMapping *mapping; // required
|
||||
@property (nonatomic, strong, readonly) NSString *pathPattern; // can be nil
|
||||
@property (nonatomic, strong, readonly) NSString *keyPath; // can be nil
|
||||
@property (nonatomic, strong, readonly) NSIndexSet *statusCodes; // can be nil
|
||||
@property (nonatomic, copy, readonly) NSString *pathPattern; // can be nil
|
||||
@property (nonatomic, copy, readonly) NSString *keyPath; // can be nil
|
||||
@property (nonatomic, copy, readonly) NSIndexSet *statusCodes; // can be nil
|
||||
|
||||
+ (RKResponseDescriptor *)responseDescriptorWithMapping:(RKMapping *)mapping
|
||||
pathPattern:(NSString *)pathPattern
|
||||
|
||||
@@ -54,9 +54,9 @@ static NSString * RKStringFromIndexSet(NSIndexSet *indexSet) {
|
||||
|
||||
@interface RKResponseDescriptor ()
|
||||
@property (nonatomic, strong, readwrite) RKMapping *mapping;
|
||||
@property (nonatomic, strong, readwrite) NSString *pathPattern;
|
||||
@property (nonatomic, strong, readwrite) NSString *keyPath;
|
||||
@property (nonatomic, strong, readwrite) NSIndexSet *statusCodes;
|
||||
@property (nonatomic, copy, readwrite) NSString *pathPattern;
|
||||
@property (nonatomic, copy, readwrite) NSString *keyPath;
|
||||
@property (nonatomic, copy, readwrite) NSIndexSet *statusCodes;
|
||||
@end
|
||||
|
||||
@implementation RKResponseDescriptor
|
||||
|
||||
Reference in New Issue
Block a user