Skip to content

Instantly share code, notes, and snippets.

@tannerburson
Created July 18, 2010 03:36
Show Gist options
  • Select an option

  • Save tannerburson/480089 to your computer and use it in GitHub Desktop.

Select an option

Save tannerburson/480089 to your computer and use it in GitHub Desktop.
#import <Foundation/Foundation.h>
#import "HTTPRiot.h"
@protocol RestRequestDelegate;
@interface RestRequest : HRRestModel <HRResponseDelegate> {
NSString *baseURL;
NSString *http_username;
NSString *http_password;
}
@property (nonatomic,retain) NSString *baseURL;
@property (nonatomic,retain) NSString *http_username;
@property (nonatomic,retain) NSString *http_password;
- (id)initWithUsername:(NSString*)username password:(NSString*)password;
- (id)processResult:(id)resource with:(NSObject<RestRequestDelegate>*)object;
- (id)processFailure:(NSString *)error code:(id)code with:(NSObject<RestRequestDelegate>*)object;
@end
@protocol RestRequestDelegate
- (void)restRequestFailure:(id)code message:(id)message;
- (void)restRequestSuccess:(id)results;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment