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