mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-12 10:36:52 +08:00
30 lines
879 B
Objective-C
30 lines
879 B
Objective-C
//
|
|
// RKRequestTTModel.h
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 2/9/10.
|
|
// Copyright 2010 Two Toasters. All rights reserved.
|
|
//
|
|
|
|
#import <Three20/Three20.h>
|
|
#import "RKRequestModel.h"
|
|
|
|
/**
|
|
* Generic class for loading a remote model using a RestKit request and supplying the model to a
|
|
* TTListDataSource subclass
|
|
*/
|
|
@interface RKRequestTTModel : TTModel <RKRequestModelDelegate> {
|
|
RKRequestModel* _model;
|
|
}
|
|
|
|
@property (nonatomic, readonly) RKRequestModel* model;
|
|
|
|
- (id)initWithResourcePath:(NSString*)resourcePath;
|
|
- (id)initWithResourcePath:(NSString*)resourcePath params:(NSDictionary*)params;
|
|
- (id)initWithResourcePath:(NSString*)resourcePath params:(NSDictionary*)params objectClass:(Class)klass;
|
|
- (id)initWithResourcePath:(NSString*)resourcePath params:(NSDictionary*)params objectClass:(Class)klass keyPath:(NSString*)keyPath;
|
|
|
|
- (NSArray*)objects;
|
|
|
|
@end
|