From 048a1d918dfbc30d59c296e48fe75431b1c10dae Mon Sep 17 00:00:00 2001 From: Gabriel Torelo <57268681+GabrielTorelo@users.noreply.github.com> Date: Fri, 14 Jul 2023 16:39:20 -0300 Subject: [PATCH] =?UTF-8?q?cria=20um=20DTO=20com=20as=20m=C3=ADnimas=20inf?= =?UTF-8?q?orma=C3=A7=C3=B5es=20necess=C3=A1rias=20dos=20jogos=20(Home=20-?= =?UTF-8?q?=20Game=20List)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../game_list/dto/GameMinDTO.java | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/main/java/com/gabriel_torelo/game_list/dto/GameMinDTO.java diff --git a/src/main/java/com/gabriel_torelo/game_list/dto/GameMinDTO.java b/src/main/java/com/gabriel_torelo/game_list/dto/GameMinDTO.java new file mode 100644 index 0000000..7cbbcd0 --- /dev/null +++ b/src/main/java/com/gabriel_torelo/game_list/dto/GameMinDTO.java @@ -0,0 +1,36 @@ +package com.gabriel_torelo.game_list.dto; + +import com.gabriel_torelo.game_list.entities.Game; + +public class GameMinDTO { + private Long id; + private String title; + private Double score; + private String imgUrl; + + public GameMinDTO() { + } + + public GameMinDTO(Game entity) { + id = entity.getId(); + title = entity.getTitle(); + score = entity.getScore(); + imgUrl = entity.getImgUrl(); + } + + public Long getId() { + return id; + } + + public String getTitle() { + return title; + } + + public Double getScore() { + return score; + } + + public String getImgUrl() { + return imgUrl; + } +}