Skip to content

Commit

Permalink
Add the job title for get promoted widget
Browse files Browse the repository at this point in the history
  • Loading branch information
khoa-nd committed Jan 14, 2016
1 parent 71d3495 commit 41fb0e9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/com/techlooper/model/GetPromotedResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/
public class GetPromotedResponse {

private String jobTitle;

private Long totalJob;

private Double salaryMin;
Expand Down Expand Up @@ -46,4 +48,12 @@ public List<TopDemandedSkillResponse> getTopDemandedSkills() {
public void setTopDemandedSkills(List<TopDemandedSkillResponse> topDemandedSkills) {
this.topDemandedSkills = topDemandedSkills;
}

public String getJobTitle() {
return jobTitle;
}

public void setJobTitle(String jobTitle) {
this.jobTitle = jobTitle;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ public GetPromotedResponse getTopDemandedSkillsByJobTitle(GetPromotedRequest req
(skill1, skill2) -> (int) skill2.getCount() - (int) skill1.getCount()
).filter(skill -> skill.getSkillName().length() <= 40).limit(limit).collect(toList()));

response.setJobTitle(request.getJobTitle());
return response;
}

Expand Down

0 comments on commit 41fb0e9

Please sign in to comment.