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); } }
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); } }