2s-computing_offre-emploi_c

// RecruitCandidateViewController
// Created by 2S Computing on 07/01/2016.
// Copyright (c) 2016 2S Computing. All rights reserved.

#import <2sComputing/Experience.h>
#import <2sComputing/Cdi.h>
#import "RecruitCandidateViewController.h"
#define EXPERIENCE_MIN 5
#define DIPLOMA_LEVEL 5
@interface RecruitCandidateViewController ()
@property (nonatomic, strong) Experience *mExperience;
@end
@implementation RecruitCandidateViewController
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
self = [super initWithCoder:aDecoder];
if (self) {
unsigned int i = 0;
unsigned int matchingSkill = 0;
self.mExperience = [[Experience sharedInstance] aquireExperience];
[self.mExperience.skills addObject:@"Cocoa"];
[self.mExperience.skills addObject:@"iOS"];
[self.mExperience.skills addObject:@"CoreData"];
[self.mExperience.skills addObject:@"Storyboards"];
[self.mExperience.skills addObject:@"Quartzcore"];
if ([[self.mExperience getYears] intValue] >= EXPERIENCE_MIN) {
if ([self.mExperience.diploma intValue] > DIPLOMA_LEVEL || self.mExperience.anywayIsGoodCandidate == YES) {
for (NSString* skill in self.mExperience.skills) {
if ([[Experience requiredSkills] containsObject:skill]) {
matchingSkill++;
}
}
if (((double) matchingSkill/i) >= 0.9)
[Cdi sendApplicationNowTo:"recrutement@2s-computing.fr"];
}
}
}
}
return self;
}
// projets industriels, R&D, informatique embarqué, applications mobile,
// SSII et cabinet de recrutement