Ignore:
Timestamp:
01/08/21 02:17:20 (4 years ago)
Author:
Vzdra <vladko.zdravkovski@…>
Branches:
master
Children:
b31afbd
Parents:
4cec0a3
Message:

project and internship response dto

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/it/finki/tinki/web/controller/LoginController.java

    r4cec0a3 rb24fe9b  
    33import it.finki.tinki.model.Jobs.Internship;
    44import it.finki.tinki.model.Jobs.Job;
     5import it.finki.tinki.model.Jobs.Project;
    56import it.finki.tinki.model.Users.Account;
    67import it.finki.tinki.model.Users.Company;
     
    5859
    5960                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);
    6063
    6164                matchedJobs.forEach(job -> {
    6265                    JobResponseDTO dto = new JobResponseDTO(job);
    6366                    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);
    6477                });
    6578
Note: See TracChangeset for help on using the changeset viewer.