Last change
on this file since 96eb8bc was a70db1a, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago |
constructor change
|
-
Property mode
set to
100644
|
File size:
928 bytes
|
Line | |
---|
1 | package it.finki.tinki.model.dto.response.work;
|
---|
2 |
|
---|
3 | import it.finki.tinki.model.Address;
|
---|
4 | import it.finki.tinki.model.Skill;
|
---|
5 | import it.finki.tinki.model.Work.Internship;
|
---|
6 | import it.finki.tinki.model.Users.Company;
|
---|
7 | import lombok.Data;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 |
|
---|
11 | @Data
|
---|
12 | public class InternshipResponseDTO extends WorkResponseDTO {
|
---|
13 | int salary;
|
---|
14 | int openSpots;
|
---|
15 | Address accountAddress;
|
---|
16 | List<Skill> skillsTrained;
|
---|
17 |
|
---|
18 | public InternshipResponseDTO(){
|
---|
19 | super("Internship!");
|
---|
20 | }
|
---|
21 |
|
---|
22 | public InternshipResponseDTO(Internship internship){
|
---|
23 | super(internship.getId(), internship.getTitle(), internship.getDescription(), internship.getSalary(), internship.getAccount());
|
---|
24 | this.salary = internship.getSalary();
|
---|
25 | this.openSpots = internship.getOpenSpots();
|
---|
26 | this.accountAddress = ((Company) internship.getAccount()).getAddress();
|
---|
27 | this.skillsTrained = internship.getSkillsTrained();
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.