mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
* Provides for the registration of route either by class and method or via symbolic name * Changed routes representation from simple dictionary to RKRoute model * Eliminated RKRouter as a protocol * Migrated RKObjectRouter to Network layer and renamed to RKRouter * Added router as property of RKClient, RKObjectManager now proxies access
23 lines
590 B
Objective-C
23 lines
590 B
Objective-C
//
|
|
// RKRoute.h
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 5/31/12.
|
|
// Copyright (c) 2012 RestKit. All rights reserved.
|
|
//
|
|
|
|
#import "RKRequest.h"
|
|
|
|
@interface RKRoute : NSObject
|
|
|
|
@property (nonatomic, retain) NSString *name; // can be nil
|
|
@property (nonatomic, retain) Class objectClass; // can be nil
|
|
@property (nonatomic, assign) RKRequestMethod method;
|
|
@property (nonatomic, retain) NSString *resourcePathPattern;
|
|
@property (nonatomic, assign) BOOL shouldEscapeResourcePath; // when YES, the path will be escaped when interpolated
|
|
|
|
- (BOOL)isNamedRoute;
|
|
- (BOOL)isClassRoute;
|
|
|
|
@end
|