- Timestamp:
- 01/08/21 02:17:20 (4 years ago)
- Branches:
- master
- Children:
- b31afbd
- Parents:
- 4cec0a3
- Location:
- src/main/java/it/finki/tinki
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/tinki/model/dto/UserResponseDTO.java
r4cec0a3 rb24fe9b 16 16 private List<Skill> toLearn; 17 17 private List<JobResponseDTO> jobs; 18 private List<Internship > internships;19 private List<Project > projects;18 private List<InternshipResponseDTO> internships; 19 private List<ProjectResponseDTO> projects; 20 20 21 21 public UserResponseDTO(){ -
src/main/java/it/finki/tinki/web/controller/LoginController.java
r4cec0a3 rb24fe9b 3 3 import it.finki.tinki.model.Jobs.Internship; 4 4 import it.finki.tinki.model.Jobs.Job; 5 import it.finki.tinki.model.Jobs.Project; 5 6 import it.finki.tinki.model.Users.Account; 6 7 import it.finki.tinki.model.Users.Company; … … 58 59 59 60 List<Job> matchedJobs = this.matchmakerService.getMatchingJobsForUser((User) a1); 61 List<Project> matchedProjects = this.matchmakerService.getMatchingProjectsForUser((User) a1); 62 List<Internship> matchedInternships = this.matchmakerService.getMatchingInternshipsForUser((User) a1); 60 63 61 64 matchedJobs.forEach(job -> { 62 65 JobResponseDTO dto = new JobResponseDTO(job); 63 66 uDto.getJobs().add(dto); 67 }); 68 69 matchedProjects.forEach(project -> { 70 ProjectResponseDTO dto = new ProjectResponseDTO(project); 71 uDto.getProjects().add(dto); 72 }); 73 74 matchedInternships.forEach(internship -> { 75 InternshipResponseDTO dto = new InternshipResponseDTO(internship); 76 uDto.getInternships().add(dto); 64 77 }); 65 78
Note:
See TracChangeset
for help on using the changeset viewer.