Adds implementation of DamageType model.
This commit is contained in:
@@ -12,6 +12,12 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
|
|
||||||
@interface DamageType : NSObject
|
@interface DamageType : NSObject
|
||||||
|
|
||||||
|
@property NSString* name;
|
||||||
|
@property NSString* note;
|
||||||
|
@property NSString* type;
|
||||||
|
|
||||||
|
-(id)initWithName: (NSString*)name note: (NSString*)note andType: (NSString*)type;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
|||||||
@@ -10,4 +10,14 @@
|
|||||||
|
|
||||||
@implementation DamageType
|
@implementation DamageType
|
||||||
|
|
||||||
|
-(id)initWithName: (NSString*)name note: (NSString*)note andType: (NSString*)type{
|
||||||
|
self = [super init];
|
||||||
|
|
||||||
|
self.name = name;
|
||||||
|
self.note = note;
|
||||||
|
self.type = type;
|
||||||
|
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
Reference in New Issue
Block a user