Files
RestKit/Code/Three20/RKRequestTTModel.h
timkerchmar 320e96e48e Update headers for three20 support.
Add keyPath support to the object loader.
2010-10-12 14:32:06 -04:00

35 lines
1.3 KiB
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 <RestKit/RestKit.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)modelWithResourcePath:(NSString*)resourcePath;
+ (id)modelWithResourcePath:(NSString*)resourcePath params:(NSDictionary*)params;
+ (id)modelWithResourcePath:(NSString*)resourcePath params:(NSDictionary*)params objectClass:(Class)klass;
+ (id)modelWithResourcePath:(NSString*)resourcePath params:(NSDictionary*)params objectClass:(Class)klass keyPath:(NSString*)keyPath;
- (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