Added response mappers

This commit is contained in:
Filip Izydorczyk
2020-10-19 12:13:02 +02:00
parent 0ad97a8e3f
commit 67c8b9bf25
6 changed files with 78 additions and 7 deletions

View File

@ -0,0 +1,35 @@
package com.plannaplan.responses.models;
import com.plannaplan.entities.User;
public class SearchForStudentsResponse {
private Long id;
private String name;
private String surname;
private String email;
public SearchForStudentsResponse(User user) {
this.id = user.getId();
this.name = user.getName();
this.surname = user.getSurname();
this.email = user.getEmail();
}
public String getEmail() {
return email;
}
public String getSurname() {
return surname;
}
public String getName() {
return name;
}
public Long getId() {
return id;
}
}