Changeset bd46dbb for src/main/java/it/finki/tinki/model/dto/response
- Timestamp:
- 01/08/21 23:47:41 (4 years ago)
- Branches:
- master
- Children:
- 297bd16
- Parents:
- bd38a55
- Location:
- src/main/java/it/finki/tinki/model/dto/response
- Files:
-
- 3 added
- 5 moved
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/tinki/model/dto/response/account/CompanyResponseDTO.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model.dto ;1 package it.finki.tinki.model.dto.response.account; 2 2 3 3 import it.finki.tinki.model.Address; 4 import it.finki.tinki.model.dto.response.work.InternshipResponseDTO; 5 import it.finki.tinki.model.dto.response.work.JobResponseDTO; 4 6 import lombok.Data; 5 7 -
src/main/java/it/finki/tinki/model/dto/response/account/LoginResponseDTO.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model.dto ;1 package it.finki.tinki.model.dto.response.account; 2 2 3 3 import it.finki.tinki.model.enumerator.AccountType; -
src/main/java/it/finki/tinki/model/dto/response/account/TeamResponseDTO.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model.dto ;1 package it.finki.tinki.model.dto.response.account; 2 2 3 import it.finki.tinki.model.dto.response.work.JobResponseDTO; 4 import it.finki.tinki.model.dto.response.work.ProjectResponseDTO; 3 5 import lombok.Data; 4 6 … … 7 9 8 10 @Data 9 public class TeamResponseDTO extends LoginResponseDTO {11 public class TeamResponseDTO extends LoginResponseDTO { 10 12 private int members; 11 13 private List<JobResponseDTO> jobs; -
src/main/java/it/finki/tinki/model/dto/response/account/UserResponseDTO.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model.dto ;1 package it.finki.tinki.model.dto.response.account; 2 2 3 3 import it.finki.tinki.model.Skill; 4 import it.finki.tinki.model.dto.response.work.InternshipResponseDTO; 5 import it.finki.tinki.model.dto.response.work.JobResponseDTO; 6 import it.finki.tinki.model.dto.response.work.ProjectResponseDTO; 4 7 import lombok.Data; 5 8 … … 8 11 9 12 @Data 10 public class UserResponseDTO extends LoginResponseDTO {13 public class UserResponseDTO extends LoginResponseDTO { 11 14 private String surname; 12 15 private List<Skill> retained; -
src/main/java/it/finki/tinki/model/dto/response/work/JobResponseDTO.java
rbd38a55 rbd46dbb 1 package it.finki.tinki.model.dto ;1 package it.finki.tinki.model.dto.response.work; 2 2 3 3 import it.finki.tinki.model.Address; 4 import it.finki.tinki.model. Jobs.Job;4 import it.finki.tinki.model.Work.Job; 5 5 import it.finki.tinki.model.Users.Company; 6 6 import it.finki.tinki.model.Users.Team; … … 9 9 10 10 @Data 11 public class JobResponseDTO { 12 Long id; 13 String title; 14 String description; 15 int salary; 16 String accountEmail; 17 String accountName; 18 AccountType accountType; 11 public class JobResponseDTO extends WorkResponseDTO { 19 12 Address accountAddress; 20 13 int members; 21 14 22 15 public JobResponseDTO(Job job){ 23 this.id = job.getId(); 24 this.title = job.getTitle(); 25 this.description = job.getDescription(); 26 this.salary = job.getSalary(); 27 this.accountEmail = job.getAccount().getEmail(); 28 this.accountName = job.getAccount().getName(); 29 this.accountType = job.getAccount().getAccountType(); 16 super(job.getId(), job.getTitle(), job.getDescription(), job.getSalary(), job.getAccount()); 30 17 if(job.getAccount().getAccountType()==AccountType.COMPANY){ 31 18 this.accountAddress = ((Company) job.getAccount()).getAddress();
Note:
See TracChangeset
for help on using the changeset viewer.