2020-10-19 12:13:02 +02:00
|
|
|
package com.plannaplan.responses.models;
|
|
|
|
|
|
|
|
import com.plannaplan.entities.User;
|
|
|
|
|
2020-11-08 16:55:56 +01:00
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
|
|
|
|
|
@ApiModel(description = "Response shows information about user.", value = "SearchForStudentsResponse")
|
2020-10-19 12:13:02 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|