forked from loafle/openapi-generator-original
26 lines
452 B
Objective-C
26 lines
452 B
Objective-C
#import "SWGFile.h"
|
|
|
|
@implementation SWGFile
|
|
|
|
@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 |