arq_restore/cocoastack/aws/AWSQueryResponse.m
2014-07-28 14:20:07 -04:00

34 lines
615 B
Objective-C

//
// Created by Stefan Reitshamer on 9/16/12.
//
//
#import "AWSQueryResponse.h"
@implementation AWSQueryResponse
- (id)initWithCode:(int)theCode headers:(NSDictionary *)theHeaders body:(NSData *)theBody {
if (self = [super init]) {
code = theCode;
headers = [theHeaders copy];
body = [theBody retain];
}
return self;
}
- (void)dealloc {
[headers release];
[body release];
[super dealloc];
}
- (int)code {
return code;
}
- (NSString *)headerForKey:(NSString *)theKey {
return [headers objectForKey:theKey];
}
- (NSData *)body {
return body;
}
@end