PageRenderTime 22ms CodeModel.GetById 10ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/Mobile/iPhone/StoffiRemote/StoffiRemote/RESTClient.h

http://yet-another-music-application.googlecode.com/
C++ Header | 28 lines | 15 code | 6 blank | 7 comment | 0 complexity | 81431952ec869152fcf914a75447e328 MD5 | raw file
 1//
 2//  RESTClient.h
 3//  StoffiRemote
 4//
 5//  Created by Fredrik Gadnell on 9/18/11.
 6//  Copyright 2011 __MyCompanyName__. All rights reserved.
 7//
 8
 9#import <Foundation/Foundation.h>
10#import "RESTRequest.h"
11
12
13@interface RESTClient : NSObject {
14    NSString *baseURL;
15    BOOL shouldSimulateResponse;
16}
17
18@property (retain) NSString *baseURL;
19@property (readwrite) BOOL shouldSimulateResponse;
20
21+ (RESTClient *)sharedClient;
22- (RESTRequest *)get:(NSString *)path delegate:(id<RestRequestDelegate>)delegate;
23- (RESTRequest *)post:(NSString *)path delegate:(id<RestRequestDelegate>)delegate;
24- (RESTRequest *)put:(NSString *)path delegate:(id<RestRequestDelegate>)delegate;
25- (RESTRequest *)del:(NSString *)path delegate:(id<RestRequestDelegate>)delegate;
26- (RESTRequest *)requestWithPath:(NSString *)path httpMethod:(NSString *)method delegate:(id<RestRequestDelegate>)delegate;
27
28@end