@interface Employer:NSObject
{
NSDate* employmentStart;
NSDate* employmentEnd;
NSString* employerName;
NSString* description;
}
-(void)initFrom: (NSDate*) employmentStart To: (NSDate*) employmentEnd Employer: (NSString*) employerName Description: (NSString*)description;
@end
@implementation Employer
-(void)initFrom: (NSDate*) employmentStart To: (NSDate*) employmentEnd Employer: (NSString*) employerName Description: (NSString*)description
{
self.employmentStart = employmentStart;
if(employmentEnd != nil)
self.employmentEnd = [[NSDate alloc] initWithString: employmentEnd];
else
self.employmentEnd = [NSDate date];
self.employerName = employerName;
self.description = description;
}
@end
#import "AvigrafSC.h"
#import "SilesianDataCenter.h"
#import "ADEO.h"
#import "AntennaSoftware.h"
@implementation CyberAppDelegate
-(void) applicationDidFinishLaunching: (UIApplication*)application
{
NSArray* employmentHistory = [NSArray arrayWithObjects: [[Employer alloc] initFrom: @"2005-06-01 00:00:00 +0100" To: nil Employer: [application self] Description: @"PHP/c/c++/python/assembler developoer; coach"],
[[Employer alloc] initFrom: @"2008-04-01 00:00:00 +0100" To: @"2010-02-28 00:00:00 +0100" Employer: [AvigrafSC getInstance] Description: @"Webdeveloper"],
[[Employer alloc] initFrom: @"2009-09-01 00:00:00 +0100" To: @"2010-05-31 00:00:00 +0100" Employer: [SilesianDataCenter getInstance] Description: @"Webdeveloper"],
[[Employer alloc] initFrom: @"2010-06-01 00:00:00 +0100" To: @"2011-09-16 00:00:00 +0100" Employer: [ADEO getInstance] Description: @"PHP/iOS developer"],
[[Employer alloc] initFrom: @"2011-09-19 00:00:00 +0100" To: nil Employer: [AntennaSoftware getInstance] Description: @"junior software engineer"],
nil];
}
@end