Skip to content

Commit 934777d

Browse files
committed
cria DTO com quase todas as informações dos jogos (Long - Game Description)
1 parent d7693e4 commit 934777d

1 file changed

Lines changed: 86 additions & 0 deletions

File tree

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
package com.gabriel_torelo.game_list.dto;
2+
3+
import org.springframework.beans.BeanUtils;
4+
import com.gabriel_torelo.game_list.entities.Game;
5+
6+
public class GameLongDTO {
7+
private Long id;
8+
private String title;
9+
private Integer year;
10+
private String gender;
11+
private String platforms;
12+
private Double score;
13+
private String imgUrl;
14+
private String longDescription;
15+
16+
public GameLongDTO() {
17+
}
18+
19+
public GameLongDTO(Game entity) {
20+
BeanUtils.copyProperties(entity, this);
21+
}
22+
23+
public Long getId() {
24+
return id;
25+
}
26+
27+
public void setId(Long id) {
28+
this.id = id;
29+
}
30+
31+
public String getTitle() {
32+
return title;
33+
}
34+
35+
public void setTitle(String title) {
36+
this.title = title;
37+
}
38+
39+
public Integer getYear() {
40+
return year;
41+
}
42+
43+
public void setYear(Integer year) {
44+
this.year = year;
45+
}
46+
47+
public String getGender() {
48+
return gender;
49+
}
50+
51+
public void setGender(String gender) {
52+
this.gender = gender;
53+
}
54+
55+
public String getPlatforms() {
56+
return platforms;
57+
}
58+
59+
public void setPlatforms(String platforms) {
60+
this.platforms = platforms;
61+
}
62+
63+
public Double getScore() {
64+
return score;
65+
}
66+
67+
public void setScore(Double score) {
68+
this.score = score;
69+
}
70+
71+
public String getImgUrl() {
72+
return imgUrl;
73+
}
74+
75+
public void setImgUrl(String imgUrl) {
76+
this.imgUrl = imgUrl;
77+
}
78+
79+
public String getLongDescription() {
80+
return longDescription;
81+
}
82+
83+
public void setLongDescription(String longDescription) {
84+
this.longDescription = longDescription;
85+
}
86+
}

0 commit comments

Comments
 (0)