From 95cb5f73a372dc3c0ee102da4f5030151065e90c Mon Sep 17 00:00:00 2001 From: geekerzp Date: Wed, 15 Jul 2015 12:13:01 +0800 Subject: [PATCH] Remove SWGFile from objc client --- .../petstore/objc/SwaggerClient/SWGFile.h | 45 ------------------- .../petstore/objc/SwaggerClient/SWGFile.m | 35 --------------- 2 files changed, 80 deletions(-) delete mode 100644 samples/client/petstore/objc/SwaggerClient/SWGFile.h delete mode 100644 samples/client/petstore/objc/SwaggerClient/SWGFile.m diff --git a/samples/client/petstore/objc/SwaggerClient/SWGFile.h b/samples/client/petstore/objc/SwaggerClient/SWGFile.h deleted file mode 100644 index bca7cd3d447..00000000000 --- a/samples/client/petstore/objc/SwaggerClient/SWGFile.h +++ /dev/null @@ -1,45 +0,0 @@ -#import - -@interface SWGFile : NSObject - -/** - * File name - */ -@property(nonatomic, readonly) NSString* name; - -/** - * File mimeType, for `multipart/form` post - */ -@property(nonatomic, readonly) NSString* mimeType; - -/** - * File data - */ -@property(nonatomic, readonly) NSData* data; - -/** - * File field parameter name, for `multipart/form` post - */ -@property(nonatomic) NSString* paramName; - -/** - * File path - */ -@property(nonatomic, readonly) NSString *path; - -/** - * Initialize with `filename`, `mimeType`, `filedata`. - */ -- (id) initWithNameData: (NSString*) filename - mimeType: (NSString*) mimeType - data: (NSData*) data; - -/** - * Initialize with `filepath`, `filedata`, `filename` - * and write file data into file path. - */ -- (id) initWithPath: (NSString *) filepath - data: (NSData *) data - name: (NSString *) filename; - -@end diff --git a/samples/client/petstore/objc/SwaggerClient/SWGFile.m b/samples/client/petstore/objc/SwaggerClient/SWGFile.m deleted file mode 100644 index 46ad41508c4..00000000000 --- a/samples/client/petstore/objc/SwaggerClient/SWGFile.m +++ /dev/null @@ -1,35 +0,0 @@ -#import "SWGFile.h" - -@implementation SWGFile - -- (id) init { - self = [super init]; - return self; -} - -- (id) initWithNameData: (NSString*) filename - mimeType: (NSString*) fileMimeType - data: (NSData*) data { - self = [super init]; - if(self) { - _name = filename; - _mimeType = fileMimeType; - _data = data; - } - return self; -} - -- (id) initWithPath:(NSString *)filepath data:(NSData *)data name:(NSString *)filename { - self = [super init]; - - if (self) { - _name = filename; - _data = data; - _path = filepath; - [data writeToFile:_path atomically:YES]; - } - - return self; -} - -@end