Last change
on this file since f067338 was bd46dbb, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago |
refactoring and response dto
|
-
Property mode
set to
100644
|
File size:
705 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.Work.Internship;
|
---|
5 | import it.finki.tinki.model.Users.Company;
|
---|
6 | import lombok.Data;
|
---|
7 |
|
---|
8 | @Data
|
---|
9 | public class InternshipResponseDTO extends WorkResponseDTO {
|
---|
10 | int salary;
|
---|
11 | int openSpots;
|
---|
12 | Address accountAddress;
|
---|
13 |
|
---|
14 | public InternshipResponseDTO(Internship internship){
|
---|
15 | super(internship.getId(), internship.getTitle(), internship.getDescription(), internship.getSalary(), internship.getAccount());
|
---|
16 | this.salary = internship.getSalary();
|
---|
17 | this.openSpots = internship.getOpenSpots();
|
---|
18 | this.accountAddress = ((Company) internship.getAccount()).getAddress();
|
---|
19 | }
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.