Created
July 18, 2010 03:54
-
-
Save tannerburson/480099 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation GetWhateverRequest | |
- (id)fetch:(id)object { | |
[[self class] getPath:@"/path/to/resource" withOptions:nil object:object]; | |
return self; | |
} | |
- (id)processResult:(id)resource with:(NSObject<RestRequestDelegate>*)object { | |
NSLog(@"[API] Returned resource [%@] %@ ",[resource class], resource); | |
[object restRequestSuccess:resource]; return self; | |
} | |
- (id)processFailure:(NSString *)error code:(id)code with:(NSObject<RestRequestDelegate>*)object { | |
return self; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment