Created
March 1, 2016 13:30
-
-
Save serhatsezer/919bbb039b4da482c901 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "KNJobListParameter.h" | |
| #import "KNJobSearchUtils.h" | |
| @implementation KNJobListParameter | |
| + (JSONKeyMapper *)keyMapper { | |
| return [[JSONKeyMapper alloc] initWithDictionary:[self mapping]]; | |
| } | |
| + (NSDictionary *)mapping { | |
| return @ | |
| { | |
| @"ct" : @"Cities", | |
| @"tt" : @"Towns", | |
| @"wa" : @"WorkArea", | |
| @"kw" : @"Keyword", | |
| @"pkw" : @"KeywordPositonName", | |
| @"ckw" : @"KeywordCompanyName", | |
| @"pst" : @"Position", | |
| @"lpst" : @"PositionLevel", | |
| @"isc" : @"IsSelectedCriteria", | |
| @"tpst" : @"PositionType", | |
| @"slr" : @"SalaryRange", | |
| @"slyr" : @"Salary", | |
| @"mnsl" : @"MinSalary", | |
| @"mxsl" : @"MaxSalary", | |
| @"hc" : @"Handicapped", | |
| @"cs" : @"Sector", | |
| @"sui" : @"Suitable", | |
| @"date" : @"Date", | |
| @"dty" : @"DateType", | |
| @"lg" : @"Language", | |
| @"so" : @"SearchOption", | |
| @"chso" : @"SearchOptionChekbox", | |
| @"sf" : @"SortFilter", | |
| @"cp" : @"CurrentPage", | |
| @"ps" : @"PageSize", | |
| @"abp" : @"AbsolutePath", | |
| @"id" : @"Id", | |
| @"ia" : @"IsApply", | |
| @"fpiso" : @"FirmPropertyISO500", | |
| @"fphr" : @"FirmPropertyHR", | |
| @"fpfc" : @"FirmPropertyFirmSecret", | |
| @"df" : @"DateFormat", | |
| @"ms" : @"MemberStatus", | |
| @"ss" : @"ShowSponsored", | |
| @"irc" : @"InvalidResumeCount", | |
| @"isin" : @"IsIntern", | |
| @"isbl" : @"IsBlueCollar", | |
| @"if" : @"IncludeFacets", | |
| @"iw" : @"Iswebrazzi", | |
| @"in" : @"IsNewJob", | |
| @"wex" : @"Experience", | |
| @"ofc" : @"OnlyForeignCountry", | |
| @"opj" : @"ShowOnlyFirstTimePublishedJobs", | |
| @"huac" : @"ShowHasRespectToHumanAwardCompanies", | |
| @"edl" : @"EducationLevel", | |
| @"jbc" : @"JobCategory", | |
| @"jbsc" : @"JobSubCategory", | |
| @"injv" : @"IsNewJobViewed", | |
| @"cid" : @"CompanyId", | |
| }; | |
| } | |
| + (BOOL)propertyIsOptional:(NSString *)propertyName { | |
| return YES; | |
| } | |
| - (void)resetAllCriteria { | |
| self.Keyword = nil; | |
| self.Cities = nil; | |
| self.DateFormat = nil; | |
| self.OnlyForeignCountry = NO; | |
| self.SearchOptionChekbox = nil; | |
| self.KeywordCompanyName = nil; | |
| self.Experience = nil; | |
| self.Position = nil; | |
| self.PositionType = nil; | |
| self.Sector = nil; | |
| self.WorkArea = nil; | |
| self.Handicapped = nil; | |
| self.OnlyForeignCountry = NO; | |
| [KNJobSearchUtils sharedInstance].positionArr = nil; | |
| [KNJobSearchUtils sharedInstance].cityArr = nil; | |
| [KNJobSearchUtils sharedInstance].sectorArr = nil; | |
| [KNJobSearchUtils sharedInstance].departmentArr = nil; | |
| [KNJobSearchUtils sharedInstance].countryArr = nil; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment