mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 19:08:52 +00:00
added files
This commit is contained in:
parent
0a7e606650
commit
af5f8909a6
17
src/main/resources/objc/NIKFile.h
Normal file
17
src/main/resources/objc/NIKFile.h
Normal file
@ -0,0 +1,17 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface NIKFile : NSObject {
|
||||
@private
|
||||
NSString* name;
|
||||
NSString* mimeType;
|
||||
NSData* data;
|
||||
}
|
||||
@property(nonatomic, readonly) NSString* name;
|
||||
@property(nonatomic, readonly) NSString* mimeType;
|
||||
@property(nonatomic, readonly) NSData* data;
|
||||
|
||||
- (id) initWithNameData: (NSString*) filename
|
||||
mimeType: (NSString*) mimeType
|
||||
data: (NSData*) data;
|
||||
|
||||
@end
|
26
src/main/resources/objc/NIKFile.m
Normal file
26
src/main/resources/objc/NIKFile.m
Normal file
@ -0,0 +1,26 @@
|
||||
#import "NIKFile.h"
|
||||
|
||||
@implementation NIKFile
|
||||
|
||||
@synthesize name = _name;
|
||||
@synthesize mimeType = _mimeType;
|
||||
@synthesize data = _data;
|
||||
|
||||
- (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;
|
||||
}
|
||||
|
||||
@end
|
Loading…
Reference in New Issue
Block a user