File tree Expand file tree Collapse file tree
src/main/java/com/gabriel_torelo/game_list/dto Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package com .gabriel_torelo .game_list .dto ;
2+
3+ import com .gabriel_torelo .game_list .entities .Game ;
4+
5+ public class GameShortDTO {
6+ private GameMinDTO gameMinDTO = new GameMinDTO ();
7+ private String shortDescription ;
8+
9+ public GameShortDTO () {
10+ }
11+
12+ public GameShortDTO (Game entity ) {
13+ gameMinDTO .setId (entity .getId ());
14+ gameMinDTO .setTitle (entity .getTitle ());
15+ gameMinDTO .setScore (entity .getScore ());
16+ gameMinDTO .setImgUrl (entity .getImgUrl ());
17+ shortDescription = entity .getShortDescription ();
18+ }
19+
20+ public Long getId () {
21+ return gameMinDTO .getId ();
22+ }
23+
24+ public String getTitle () {
25+ return gameMinDTO .getTitle ();
26+ }
27+
28+ public Double getScore () {
29+ return gameMinDTO .getScore ();
30+ }
31+
32+ public String getImgUrl () {
33+ return gameMinDTO .getImgUrl ();
34+ }
35+
36+ public String getShortDescription () {
37+ return shortDescription ;
38+ }
39+ }
You can’t perform that action at this time.
0 commit comments