Last change
on this file since b24fe9b was b24fe9b, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago |
project and internship response dto
|
-
Property mode
set to
100644
|
File size:
996 bytes
|
Rev | Line | |
---|
[b24fe9b] | 1 | package it.finki.tinki.model.dto;
|
---|
| 2 |
|
---|
| 3 | import it.finki.tinki.model.Address;
|
---|
| 4 | import it.finki.tinki.model.Jobs.Job;
|
---|
| 5 | import it.finki.tinki.model.Jobs.Project;
|
---|
| 6 | import it.finki.tinki.model.Users.Company;
|
---|
| 7 | import it.finki.tinki.model.Users.Team;
|
---|
| 8 | import it.finki.tinki.model.enumerator.AccountType;
|
---|
| 9 | import lombok.Data;
|
---|
| 10 |
|
---|
| 11 | @Data
|
---|
| 12 | public class ProjectResponseDTO {
|
---|
| 13 | Long id;
|
---|
| 14 | String title;
|
---|
| 15 | String description;
|
---|
| 16 | int salary;
|
---|
| 17 | String accountEmail;
|
---|
| 18 | String accountName;
|
---|
| 19 | AccountType accountType;
|
---|
| 20 | int members;
|
---|
| 21 |
|
---|
| 22 | public ProjectResponseDTO(Project project){
|
---|
| 23 | this.id = project.getId();
|
---|
| 24 | this.title = project.getTitle();
|
---|
| 25 | this.description = project.getDescription();
|
---|
| 26 | this.salary = project.getSalary();
|
---|
| 27 | this.accountEmail = project.getAccount().getEmail();
|
---|
| 28 | this.accountName = project.getAccount().getName();
|
---|
| 29 | this.accountType = project.getAccount().getAccountType();
|
---|
| 30 | this.members = ((Team) project.getAccount()).getMembers();
|
---|
| 31 | }
|
---|
| 32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.