master #173

Merged
Maxime merged 71 commits from Maxime/Clyde:master into master 2024-04-22 00:07:00 +02:00
Showing only changes of commit 24f82812f4 - Show all commits

View File

@ -28,8 +28,9 @@ public class ResearchDTO {
private Access access;
private String domain;
private String summary;
private long views;
private ResearchDTO(String title, ResearcherDTO researcherDTO, Date releaseDate, PaperType paperType, String pdfLocation, String language, Access access, String domain, String summary, long id) {
private ResearchDTO(String title, ResearcherDTO researcherDTO, Date releaseDate, PaperType paperType, String pdfLocation, String language, Access access, String domain, String summary, long id,long views) {
this.title = title;
this.researcher = researcherDTO;
this.releaseDate = releaseDate;
@ -40,12 +41,13 @@ public class ResearchDTO {
this.domain = domain;
this.summary = summary;
this.id = id;
this.views = views;
}
public static ResearchDTO construct(Research research){
return new ResearchDTO(research.getTitle(), ResearcherDTO.construct(research.getAuthor()), research.getReleaseDate(),
research.getPaperType(),research.getPdfLocation(),research.getLanguage(),research.getAccess(),
research.getDomain(), research.getSummary(), research.getId());
research.getDomain(), research.getSummary(), research.getId(), research.getViews());
}
}