Ejemplo n.º 1
0
        public IJob GetJob()
        {
            try
            {
                IJob job = null;
                switch (this.url)
                {
                case "猎聘":
                    job = new JobFromLiePin(workAddress, workAddressId, keyWord, mustKey);
                    break;

                case "51Job":
                    job = new JobFrom51Job(workAddress, workAddressId, keyWord, mustKey);
                    break;

                case "智联":
                    job = new JobFromZhiLian(workAddress, keyWord, upperSalary, lowerSalary, mustKey);
                    break;
                }
                return(job);
            }
            catch (Exception exMsg)
            {
                throw new Exception(exMsg.Message);
            }
        }
Ejemplo n.º 2
0
 public IJob GetJob()
 {
     try
     {
         IJob job = null;
         switch (this.url)
         {
             case "猎聘":
                 job = new JobFromLiePin(workAddress, workAddressId, keyWord, mustKey);
                 break;
             case "51Job":
                 job = new JobFrom51Job(workAddress, workAddressId, keyWord, mustKey);
                 break;
             case "智联":
                 job = new JobFromZhiLian(workAddress, keyWord, upperSalary, lowerSalary, mustKey);
                 break;
         }
         return job;
     }
     catch (Exception exMsg)
     {
         throw new Exception(exMsg.Message);
     }
 }