mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-19 13:09:19 +08:00
24 lines
624 B
Objective-C
24 lines
624 B
Objective-C
//
|
|
// RKRouter.h
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 6/20/12.
|
|
// Copyright (c) 2012 RestKit. All rights reserved.
|
|
//
|
|
|
|
#import "RKRequest.h"
|
|
@class RKURL, RKRouteSet;
|
|
|
|
@interface RKRouter : NSObject
|
|
|
|
@property (nonatomic, retain) RKURL *baseURL;
|
|
@property (nonatomic, retain) RKRouteSet *routeSet;
|
|
|
|
- (id)initWithBaseURL:(RKURL *)baseURL;
|
|
|
|
- (RKURL *)URLForRouteNamed:(NSString *)routeName method:(out RKRequestMethod *)method;
|
|
- (RKURL *)URLForObject:(id)object method:(RKRequestMethod)method;
|
|
- (RKURL *)URLForRelationship:(NSString *)relationshipName ofObject:(id)object method:(RKRequestMethod)method;
|
|
|
|
@end
|