00001
00002
00003
00004
00005
00006
00007
00008 #import <Foundation/Foundation.h>
00009 #import "HRGlobal.h"
00010
00049 @interface HRRestModel : NSObject {
00050
00051 }
00052
00063 + (NSObject *)delegate;
00064
00069 + (void)setDelegate:(NSObject *)del;
00070
00074 + (NSURL *)baseURL;
00075
00085 + (void)setBaseURL:(NSURL *)url;
00086
00090 + (NSDictionary *)headers;
00091
00102 + (void)setHeaders:(NSDictionary *)hdrs;
00103
00107 + (NSDictionary *)basicAuth;
00108
00117 + (void)setBasicAuthWithUsername:(NSString *)username password:(NSString *)password;
00118
00122 + (NSDictionary *)defaultParams;
00123
00130 + (void)setDefaultParams:(NSDictionary *)params;
00131
00136 + (HRDataFormat)format;
00137
00141 + (void)setFormat:(HRDataFormat)format;
00143
00168 + (NSOperation *)getPath:(NSString *)path withOptions:(NSDictionary *)options object:(id)object;
00169
00180 + (NSOperation *)postPath:(NSString *)path withOptions:(NSDictionary *)options object:(id)object;
00181
00193 + (NSOperation *)putPath:(NSString *)path withOptions:(NSDictionary *)options object:(id)object;
00194
00203 + (NSOperation *)deletePath:(NSString *)path withOptions:(NSDictionary *)options object:(id)object;
00205 @end