Example #1
0
 static void PrintAll(Processor pc)
 {
     foreach (Profile w in pc.GetNextProfiles())
     {
         Console.WriteLine(w.name.firstname);
     }
 }
Example #2
0
 static void TryPostMatch(Processor pc)
 {
     List<Profile> profiles = pc.GetNextProfiles();
     List<Vacancy> vacancies = pc.GetNextVacancies();
     Match match = new Match();
     match.factors = new List<MatchFactor>();
     MatchFactor factor = new MatchFactor();
     factor.factor = "Test";
     factor.multiplier = 2;
     factor.strength = 80;
     factor.text = "Text here";
     match.factors.Add(factor);
     match.profile = profiles[0];
     match.vacancy = vacancies[0];
     match.strength = 50;
     pc.SaveMatch(match);
 }