source: src/main/java/it/finki/tinki/model/dto/response/work/WorkResponseDTO.java@ bd46dbb

Last change on this file since bd46dbb was bd46dbb, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago

refactoring and response dto

  • Property mode set to 100644
File size: 745 bytes
Line 
1package it.finki.tinki.model.dto.response.work;
2
3import it.finki.tinki.model.Users.Account;
4import it.finki.tinki.model.enumerator.AccountType;
5import lombok.Data;
6
7@Data
8public class WorkResponseDTO {
9 Long id;
10 String title;
11 String description;
12 int salary;
13 String accountEmail;
14 String accountName;
15 AccountType accountType;
16
17 WorkResponseDTO(){}
18
19 WorkResponseDTO(Long id, String title, String description, int salary, Account account){
20 this.id = id;
21 this.title = title;
22 this.description = description;
23 this.salary = salary;
24 this.accountEmail = account.getEmail();
25 this.accountName = account.getName();
26 this.accountType = account.getAccountType();
27 }
28}
Note: See TracBrowser for help on using the repository browser.