Changeset b24fe9b for src/main


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

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  
    1616    private List<Skill> toLearn;
    1717    private List<JobResponseDTO> jobs;
    18     private List<Internship> internships;
    19     private List<Project> projects;
     18    private List<InternshipResponseDTO> internships;
     19    private List<ProjectResponseDTO> projects;
    2020
    2121    public UserResponseDTO(){
  • 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.