Пример #1
0
        public IFindJob Get(string source)
        {
            IFindJob    findJob     = null;
            RecruitEnum enumRecruit = (RecruitEnum)Enum.Parse(typeof(RecruitEnum), source);

            switch (enumRecruit)
            {
            case RecruitEnum.BOSS:
                findJob = new FindBossJob(_provider);
                break;

            case RecruitEnum.Lagou:
                findJob = new FindLagouJob(_provider);
                break;

            case RecruitEnum.Liepin:
                findJob = new FindLiepinJob(_provider);
                break;

            case RecruitEnum.QC51:
                findJob = new FindQCJob(_provider);
                break;

            case RecruitEnum.ZLZhaopin:
                findJob = new FindZhaopinJob(_provider);
                break;
            }
            return(findJob);
        }
Пример #2
0
        public async Task <List <JobInfo> > GetJobsAsync(string source, string city, string searchKey, int pageIndex)
        {
            IFindJob findJob = findjobFactory.Get(source);

            findJob.City      = city;
            findJob.SearchKey = searchKey;
            findJob.PageIndex = pageIndex;
            var jobList = await findJob.GetJobsAsync();

            return(jobList);
        }
Пример #3
0
        public async Task <DetailsInfo> GetDetailsInfo(string source, string url)
        {
            IFindJob findJob = findjobFactory.Get(source);

            return(await findJob.GetDetailsInfo(url));
        }