mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Finished split into more logical components. Library now copies Headers to Build/RestKit and you can selectively link against the components your app needs. libRestKit.a contains everything from the core library.
This commit is contained in:
38
Code/Network/RKParamsAttachment.m
Normal file
38
Code/Network/RKParamsAttachment.m
Normal file
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// RKAttachment.m
|
||||
// RestKit
|
||||
//
|
||||
// Created by Blake Watters on 8/6/09.
|
||||
// Copyright 2009 Two Toasters. All rights reserved.
|
||||
//
|
||||
|
||||
#import "RKParamsAttachment.h"
|
||||
|
||||
@implementation RKParamsAttachment
|
||||
|
||||
@synthesize fileName = _fileName, MIMEType = _MIMEType;
|
||||
|
||||
+ (id)attachment {
|
||||
return [[[self alloc] init] autorelease];
|
||||
}
|
||||
|
||||
- (id)init {
|
||||
if (self = [super init]) {
|
||||
self.fileName = @"file";
|
||||
self.MIMEType = @"application/octet-stream";
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
[_fileName release];
|
||||
[_MIMEType release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void)writeAttachmentToHTTPBody:(NSMutableData*)HTTPBody {
|
||||
[self doesNotRecognizeSelector:_cmd];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user