Last change
on this file since 33d4f5d was 33d4f5d, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago |
bugfixes and refactoring
|
-
Property mode
set to
100644
|
File size:
842 bytes
|
Rev | Line | |
---|
[bd46dbb] | 1 | package it.finki.tinki.model.dto.response.work;
|
---|
| 2 |
|
---|
| 3 | import it.finki.tinki.model.Users.Account;
|
---|
| 4 | import it.finki.tinki.model.enumerator.AccountType;
|
---|
| 5 | import lombok.Data;
|
---|
| 6 |
|
---|
| 7 | @Data
|
---|
| 8 | public class WorkResponseDTO {
|
---|
| 9 | Long id;
|
---|
| 10 | String title;
|
---|
| 11 | String description;
|
---|
| 12 | int salary;
|
---|
| 13 | String accountEmail;
|
---|
| 14 | String accountName;
|
---|
| 15 | AccountType accountType;
|
---|
[33d4f5d] | 16 | String error;
|
---|
[bd46dbb] | 17 |
|
---|
[33d4f5d] | 18 | WorkResponseDTO(){
|
---|
| 19 | this.error = "Error registering job!";
|
---|
| 20 | }
|
---|
[bd46dbb] | 21 |
|
---|
| 22 | WorkResponseDTO(Long id, String title, String description, int salary, Account account){
|
---|
[33d4f5d] | 23 | this.error = null;
|
---|
[bd46dbb] | 24 | this.id = id;
|
---|
| 25 | this.title = title;
|
---|
| 26 | this.description = description;
|
---|
| 27 | this.salary = salary;
|
---|
| 28 | this.accountEmail = account.getEmail();
|
---|
| 29 | this.accountName = account.getName();
|
---|
| 30 | this.accountType = account.getAccountType();
|
---|
| 31 | }
|
---|
| 32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.